public class JGeometryWritable
extends java.lang.Object
implements org.apache.hadoop.io.Writable, java.io.Serializable
A writable wrapper for the JGeometry class.
Constructor and Description |
---|
JGeometryWritable()
Creates an empty instance
|
JGeometryWritable(oracle.spatial.geometry.JGeometry geometry)
Creates a new instance containing the given JGeometry
|
Modifier and Type | Method and Description |
---|---|
oracle.spatial.geometry.JGeometry |
getGeometry()
Gets the current JGeometry instance
|
void |
readFields(java.io.DataInput in) |
void |
set(JGeometryWritable geomW)
Copies the content of another JGeometryWritable instance.
|
void |
setGeometry(oracle.spatial.geometry.JGeometry geometry)
Sets the current JGeometry instance
|
void |
write(java.io.DataOutput out) |
public JGeometryWritable()
public JGeometryWritable(oracle.spatial.geometry.JGeometry geometry)
geometry
- A JGeometry instancepublic void set(JGeometryWritable geomW)
geomW
-public oracle.spatial.geometry.JGeometry getGeometry()
public void setGeometry(oracle.spatial.geometry.JGeometry geometry)
geometry
- a JGeometry instancepublic void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException