package kryo
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- kryo
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- class KryoBufferSimpleFeature extends SimpleFeature
-
trait
KryoFeatureSerializer extends KryoFeatureSerialization with KryoFeatureDeserialization
Kryo feature serialization and deserialization.
Kryo feature serialization and deserialization.
The current serialization scheme (version 3):
- one byte containing the serialization version (3)
- two bytes for a short containing the number of serialized attributes. this supports appending attributes to the schema, as we know how many attributes were written when deserializing
- one byte for the size of the stored offsets, which will currently be either 2 (for shorts) or 4 (for ints)
- a known number of bytes for metadata, which consists of:
- 2 byte short or 4 byte int (determined by the size as stored above) per attribute for the offset to the start of the attribute in the serialized bytes
- 2 byte short or 4 byte int (determined by the size as stored above) for the offset to the start of the user data (or end of the feature if no user data)
- 4 bytes per 32 attributes (or part thereof) to store a bitset tracking null attributes
- the feature id as a string (if
withId) - the serialized attributes, in order
- the serialized user data (if
withUserData)
-
case class
Metadata(input: Input, count: Int, size: Int, offset: Int, nulls: IntBitSet) extends Product with Serializable
Metadata for serialized simple features
Metadata for serialized simple features
- input
kryo input
- count
number of attributes serialized in this feature (may be less than the current sft)
- size
size of each offset - either 2 or 4 bytes
- offset
attribute positions are stored relative to this offset into the serialized bytes
- nulls
null bit set
-
class
ProjectingKryoFeatureDeserializer extends SimpleFeatureSerializer
Deserialize and project to a new feature type
-
class
ProjectingKryoFeatureSerializer extends SimpleFeatureSerializer
Project to a subtype when serializing
Value Members
- val SerializerCacheExpiry: Duration
- object KryoBufferSimpleFeature
- object KryoFeatureSerializer
- object Metadata extends Serializable