Packages

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.

Linear Supertypes
HasEncodingOptions, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleFeatureSerializer
  2. HasEncodingOptions
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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

  2. 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

  3. 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

  4. abstract def deserialize(in: InputStream): SimpleFeature

    Deserialize a simple feature from an input stream

    Deserialize a simple feature from an input stream

    in

    input

  5. abstract def options: Set[SerializationOption]
    Definition Classes
    HasEncodingOptions
  6. 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

  7. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. 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

  7. def deserialize(bytes: Array[Byte]): SimpleFeature

    Deserialize a simple feature from a byte array

    Deserialize a simple feature from a byte array

    bytes

    bytes

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from HasEncodingOptions

Inherited from AnyRef

Inherited from Any

Ungrouped