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 voidcopyTo(AbstractGeospatialType geo)ObjectgetGeoCache()Get the Object model representation of the geospatial valueintgetSrid()voidreadExternal(ObjectInput in)voidsetGeoCache(Object objectReference)Set the Object model representation of the geospatial valuevoidsetSrid(int srid)voidwriteExternal(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:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classStreamable<Blob>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classStreamable<Blob>- Throws:
IOExceptionClassNotFoundException
-
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)
-
-