org.locationtech.geomesa.features
SimpleFeatureSerializer
Companion object SimpleFeatureSerializer
trait SimpleFeatureSerializer extends HasEncodingOptions
Interface to encode SimpleFeatures with a configurable serialization format.
A SimpleFeatureEncoder is bound to a given SimpleFeatureType since serialization may depend upon the schema of the feature type.
SimpleFeatureEncoder classes may not be thread safe and should generally be used as instance variables for performance reasons.
- Alphabetic
- By Inheritance
- SimpleFeatureSerializer
- HasEncodingOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
deserialize(id: String, bytes: Array[Byte], offset: Int, length: Int): SimpleFeature
Deserialize a simple feature from a subset of a byte array, with a feature id provided separately
Deserialize a simple feature from a subset of a byte array, with a feature id provided separately
Note that this only makes sense when used in conjunction with
org.locationtech.geomesa.features.SerializationOption.WithoutId()
- id
feature id
- bytes
bytes
- offset
offset of first byte to read
- length
total bytes to read
-
abstract
def
deserialize(id: String, in: InputStream): SimpleFeature
Deserialize a simple feature from an input stream, with a feature id provided separately
Deserialize a simple feature from an input stream, with a feature id provided separately
Note that this only makes sense when used in conjunction with
org.locationtech.geomesa.features.SerializationOption.WithoutId()
- id
feature id
- in
input
-
abstract
def
deserialize(bytes: Array[Byte], offset: Int, length: Int): SimpleFeature
Deserialize a simple feature from a subset of a byte array
Deserialize a simple feature from a subset of a byte array
- bytes
bytes
- offset
offset of first byte to read
- length
total bytes to read
-
abstract
def
deserialize(in: InputStream): SimpleFeature
Deserialize a simple feature from an input stream
Deserialize a simple feature from an input stream
- in
input
-
abstract
def
options: Set[SerializationOption]
- Definition Classes
- HasEncodingOptions
-
abstract
def
serialize(feature: SimpleFeature, out: OutputStream): Unit
Serialize a simple feature to an output stream
Serialize a simple feature to an output stream
- feature
feature
- out
output stream
-
abstract
def
serialize(feature: SimpleFeature): Array[Byte]
Serialize a simple feature to a byte array
Serialize a simple feature to a byte array
- feature
feature
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
deserialize(id: String, bytes: Array[Byte]): SimpleFeature
Deserialize a simple feature from a byte array, with a feature id provided separately.
Deserialize a simple feature from a byte array, with a feature id provided separately.
Note that this only makes sense when used in conjunction with
org.locationtech.geomesa.features.SerializationOption.WithoutId()
- id
feature id
- bytes
bytes
-
def
deserialize(bytes: Array[Byte]): SimpleFeature
Deserialize a simple feature from a byte array
Deserialize a simple feature from a byte array
- bytes
bytes
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated