class CompositeKeyStateEncoder[GK, K, V] extends StateTypesEncoder[GK, V]
- Alphabetic
- By Inheritance
- CompositeKeyStateEncoder
- StateTypesEncoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CompositeKeyStateEncoder(keySerializer: Serializer[GK], userKeyEnc: Encoder[K], valEncoder: Encoder[V], schemaForCompositeKeyRow: StructType, stateName: String, hasTtl: Boolean = false)
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(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def decodeCompositeKey(row: UnsafeRow): K
The input row is of composite Key schema.
The input row is of composite Key schema. Only user key is returned though grouping key also exist in the row.
- def decodeTtlExpirationMs(row: UnsafeRow): Option[Long]
Decode the ttl information out of Value row.
Decode the ttl information out of Value row. If the ttl has not been set (-1L specifies no user defined value), the API will return None.
- Definition Classes
- StateTypesEncoder
- def decodeUserKeyFromTTLRow(row: CompositeKeyTTLRow): K
- def decodeValue(row: UnsafeRow): V
- Definition Classes
- StateTypesEncoder
- def encodeCompositeKey(groupingKeyByteArr: Array[Byte], userKeyByteArr: Array[Byte]): UnsafeRow
Grouping key and user key are encoded as a row of
schemaForCompositeKeyRow
schema.Grouping key and user key are encoded as a row of
schemaForCompositeKeyRow
schema. Grouping key will be encoded inRocksDBStateEncoder
as the prefix column. - def encodeCompositeKey(userKey: K): UnsafeRow
Grouping key and user key are encoded as a row of
schemaForCompositeKeyRow
schema.Grouping key and user key are encoded as a row of
schemaForCompositeKeyRow
schema. Grouping key will be encoded inRocksDBStateEncoder
as the prefix column. - def encodeGroupingKey(): UnsafeRow
- Definition Classes
- StateTypesEncoder
- def encodeSerializedGroupingKey(groupingKeyBytes: Array[Byte]): UnsafeRow
Encodes the provided grouping key into Spark UnsafeRow.
Encodes the provided grouping key into Spark UnsafeRow.
- groupingKeyBytes
serialized grouping key byte array
- returns
encoded UnsafeRow
- Definition Classes
- StateTypesEncoder
- def encodeValue(value: V, expirationMs: Long): UnsafeRow
Encode the specified value in Spark UnsafeRow with provided ttl expiration.
Encode the specified value in Spark UnsafeRow with provided ttl expiration.
- Definition Classes
- StateTypesEncoder
- def encodeValue(value: V): UnsafeRow
Encode the specified value in Spark UnsafeRow with no ttl.
Encode the specified value in Spark UnsafeRow with no ttl.
- Definition Classes
- StateTypesEncoder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def isExpired(row: UnsafeRow, batchTimestampMs: Long): Boolean
- Definition Classes
- StateTypesEncoder
- 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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def serializeGroupingKey(): Array[Byte]
- Definition Classes
- StateTypesEncoder
- def serializeUserKey(userKey: K): Array[Byte]
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)