class DriverStatefulProcessorHandleImpl extends StatefulProcessorHandleImplBase
This DriverStatefulProcessorHandleImpl is used within TransformWithExec on the driver side to collect the columnFamilySchemas before any processing is actually done. We need this class because we can only collect the schemas after the StatefulProcessor is initialized.
- Alphabetic
- By Inheritance
- DriverStatefulProcessorHandleImpl
- StatefulProcessorHandleImplBase
- StatefulProcessorHandle
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DriverStatefulProcessorHandleImpl(timeMode: TimeMode, keyExprEnc: ExpressionEncoder[Any])
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
- def addTTLSchemas(columnFamilySchemas: Map[String, StateStoreColFamilySchema], stateVariableInfo: TransformWithStateVariableInfo, stateName: String, keySchema: StructType): Unit
Updates the column family schemas map to handle TTL column families.
- 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()
- var currState: StatefulProcessorHandleState
- Attributes
- protected
- Definition Classes
- StatefulProcessorHandleImplBase
- def deleteIfExists(stateName: String): Unit
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def deleteTimer(expiryTimestampMs: Long): Unit
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- 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 getColumnFamilySchemas(shouldCheckNullable: Boolean, shouldSetNullable: Boolean): Map[String, StateStoreColFamilySchema]
This method returns all column family schemas, and checks and enforces nullability if need be.
This method returns all column family schemas, and checks and enforces nullability if need be. The nullability check and set is only set to true when Avro is enabled.
- shouldCheckNullable
Whether we need to check the nullability. This is set to true when using Python, as this is the only avenue through which users can set nullability
- shouldSetNullable
Whether we need to set the fields as nullable. This is set to true when using Scala, as primitive type encoders set the field to non-nullable. Changing fields from non-nullable to nullable does not break anything (and is required for Avro encoding), so we can safely make this change.
- returns
column family schemas used by this stateful processor.
- def getCountIndexSchema(stateName: String, elementKeySchema: StructType): StateStoreColFamilySchema
Gets the schema for count index column family which maps elementKey -> count.
Gets the schema for count index column family which maps elementKey -> count. This is used by one-to-many TTL states to track number of entries.
- def getHandleState: StatefulProcessorHandleState
- Definition Classes
- StatefulProcessorHandleImplBase
- def getListState[T](stateName: String, ttlConfig: TTLConfig)(implicit arg0: Encoder[T]): ListState[T]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getListState[T](stateName: String, valEncoder: Encoder[T], ttlConfig: TTLConfig): ListState[T]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getMapState[K, V](stateName: String, ttlConfig: TTLConfig)(implicit arg0: Encoder[K], arg1: Encoder[V]): MapState[K, V]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getMapState[K, V](stateName: String, userKeyEnc: Encoder[K], valEncoder: Encoder[V], ttlConfig: TTLConfig): MapState[K, V]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getMinExpiryIndexSchema(stateName: String, elementKeySchema: StructType): StateStoreColFamilySchema
Gets the schema for min expiry index column family which maps elementKey -> minExpirationMs.
Gets the schema for min expiry index column family which maps elementKey -> minExpirationMs. This is used by one-to-many TTL states.
- def getQueryInfo(): QueryInfo
Function to return queryInfo for currently running task
Function to return queryInfo for currently running task
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getStateVariableInfos: Map[String, TransformWithStateVariableInfo]
- def getTTLIndexSchema(stateName: String, elementKeySchema: StructType): StateStoreColFamilySchema
Gets the schema for TTL index column family which maps (expirationMs, elementKey) -> EMPTY_ROW.
Gets the schema for TTL index column family which maps (expirationMs, elementKey) -> EMPTY_ROW. This is used by both one-to-one and one-to-many TTL states.
- def getValueState[T](stateName: String, ttlConfig: TTLConfig)(implicit arg0: Encoder[T]): ValueState[T]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def getValueState[T](stateName: String, valEncoder: Encoder[T], ttlConfig: TTLConfig): ValueState[T]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listTimers(): Iterator[Long]
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- 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 registerTimer(expiryTimestampMs: Long): Unit
Methods that are only included to satisfy the interface.
Methods that are only included to satisfy the interface. These methods will fail if called from the driver side, as the handle will be in the PRE_INIT phase, and all these timer operations need to be called from the INITIALIZED phase.
- Definition Classes
- DriverStatefulProcessorHandleImpl → StatefulProcessorHandle
- def setHandleState(newState: StatefulProcessorHandleState): Unit
- Definition Classes
- StatefulProcessorHandleImplBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def verifyStateVarOperations(operationType: String, requiredState: StatefulProcessorHandleState): Unit
- Definition Classes
- StatefulProcessorHandleImplBase
- def verifyTimerOperations(operationType: String): Unit
- Definition Classes
- StatefulProcessorHandleImplBase
- 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)