public class RTreeWritable
extends java.lang.Object
implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
RTreeWritable()
Creates an empty instance
|
RTreeWritable(oracle.spatial.util.RTree tree)
Creates an instance with the given tree
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIndexName()
Gets the index name
|
int |
getSrid()
Gets the SRID
|
oracle.spatial.util.RTree |
getTree()
Gets the current tree
|
boolean |
isGeodetic()
Returns true if the data are geodetic, false otherwise
|
void |
readFields(java.io.DataInput in) |
void |
set(RTreeWritable treeW)
Copies the content from another instance.
|
void |
setGeodetic(boolean geodetic)
Sets true if the data are geodetic, false otherwise
|
void |
setIndexName(java.lang.String indexName)
Sets the index name
|
void |
setSrid(int srid)
Sets the SRID
|
void |
setTree(oracle.spatial.util.RTree tree)
Sets a tree
|
void |
write(java.io.DataOutput out) |
public RTreeWritable()
public RTreeWritable(oracle.spatial.util.RTree tree)
tree
- an RTree instancepublic void set(RTreeWritable treeW)
treeW
-public oracle.spatial.util.RTree getTree()
public void setTree(oracle.spatial.util.RTree tree)
tree
- an RTree instancepublic java.lang.String getIndexName()
public void setIndexName(java.lang.String indexName)
indexName
- the index namepublic int getSrid()
public void setSrid(int srid)
srid
- the SRIDpublic boolean isGeodetic()
public void setGeodetic(boolean geodetic)
geodetic
- true if the data are geodetic, false otherwisepublic 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