Package org.teiid.core.types
Class AbstractGeospatialType
- java.lang.Object
-
- org.teiid.core.types.Streamable<Blob>
-
- org.teiid.core.types.BlobType
-
- org.teiid.core.types.AbstractGeospatialType
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable<BlobType>
,Blob
- Direct Known Subclasses:
GeographyType
,GeometryType
public abstract class AbstractGeospatialType extends BlobType
Base type for geography and geometry. Simply a blob reference with an srid.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.teiid.core.types.Streamable
CHARSET, ENCODING, length, reference, STREAMING_BATCH_SIZE_IN_BYTES
-
-
Constructor Summary
Constructors Constructor Description AbstractGeospatialType()
AbstractGeospatialType(byte[] bytes)
AbstractGeospatialType(Blob blob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyTo(AbstractGeospatialType geo)
Object
getGeoCache()
Get the Object model representation of the geospatial valueint
getSrid()
void
readExternal(ObjectInput in)
void
setGeoCache(Object objectReference)
Set the Object model representation of the geospatial valuevoid
setSrid(int srid)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.teiid.core.types.BlobType
compareTo, createBlob, equals, free, getBinaryStream, getBinaryStream, getBytes, hashCode, position, position, readReference, setBinaryStream, setBytes, setBytes, truncate, writeReference
-
Methods inherited from class org.teiid.core.types.Streamable
getLength, getReference, getReferenceStreamId, isBinary, length, setReference, setReferenceStreamId, toString
-
-
-
-
Constructor Detail
-
AbstractGeospatialType
public AbstractGeospatialType()
-
AbstractGeospatialType
public AbstractGeospatialType(Blob blob)
-
AbstractGeospatialType
public AbstractGeospatialType(byte[] bytes)
-
-
Method Detail
-
getSrid
public int getSrid()
-
setSrid
public void setSrid(int srid)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classStreamable<Blob>
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classStreamable<Blob>
- Throws:
IOException
ClassNotFoundException
-
getGeoCache
public Object getGeoCache()
Get the Object model representation of the geospatial value
-
setGeoCache
public void setGeoCache(Object objectReference)
Set the Object model representation of the geospatial value
-
copyTo
public void copyTo(AbstractGeospatialType geo)
-
-