class CompositeKeyStateEncoder[K, V] extends StateTypesEncoder[V]
- Alphabetic
- By Inheritance
- CompositeKeyStateEncoder
- StateTypesEncoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new CompositeKeyStateEncoder(keyEncoder: ExpressionEncoder[Any], userKeyEnc: Encoder[K], valEncoder: Encoder[V], 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 decodeValue(row: UnsafeRow): V
- Definition Classes
- StateTypesEncoder
- def encodeCompositeKey(groupingKey: UnsafeRow, userKey: UnsafeRow): UnsafeRow
- 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
- CompositeKeyStateEncoder → StateTypesEncoder
- def encodeUserKey(userKey: K): UnsafeRow
- 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()
- 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)