object RocksDBStateStoreProvider
- Alphabetic
- By Inheritance
- RocksDBStateStoreProvider
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val ALL_CUSTOM_METRICS: Seq[Product with StateStoreCustomMetric with Serializable { def withNewDesc(newDesc: String): Product with org.apache.spark.sql.execution.streaming.state.StateStoreCustomMetric with java.io.Serializable }]
- val CUSTOM_METRIC_BLOCK_CACHE_HITS: StateStoreCustomSumMetric
- val CUSTOM_METRIC_BLOCK_CACHE_MISS: StateStoreCustomSumMetric
- val CUSTOM_METRIC_BYTES_COPIED: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_BYTES_READ: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_BYTES_WRITTEN: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_CHECKPOINT_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_COMMIT_COMPACT_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_COMPACT_READ_BYTES: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_COMPACT_WRITTEN_BYTES: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_FILESYNC_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_FILES_COPIED: StateStoreCustomSumMetric
- val CUSTOM_METRIC_FILES_REUSED: StateStoreCustomSumMetric
- val CUSTOM_METRIC_FLUSH_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_FLUSH_WRITTEN_BYTES: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_GET_COUNT: StateStoreCustomSumMetric
- val CUSTOM_METRIC_GET_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_ITERATOR_BYTES_READ: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_NUM_EXTERNAL_COL_FAMILIES: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_NUM_INTERNAL_COL_FAMILIES: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_NUM_INTERNAL_COL_FAMILIES_KEYS: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_PINNED_BLOCKS_MEM_USAGE: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_PUT_COUNT: StateStoreCustomSumMetric
- val CUSTOM_METRIC_PUT_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_SST_FILE_SIZE: StateStoreCustomSizeMetric
- val CUSTOM_METRIC_STALL_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_TOTAL_COMPACT_TIME: StateStoreCustomTimingMetric
- val CUSTOM_METRIC_ZIP_FILE_BYTES_UNCOMPRESSED: StateStoreCustomSizeMetric
- val SCHEMA_ID_PREFIX_BYTES: Int
- val STATE_ENCODING_NUM_VERSION_BYTES: Int
- val STATE_ENCODING_VERSION: Byte
- val VIRTUAL_COL_FAMILY_PREFIX_BYTES: Int
- 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 decodeStateRowWithPrefix(data: Array[Byte]): Array[Byte]
Function to decode state row with virtual col family id prefix
Function to decode state row with virtual col family id prefix
- data
- passed byte array retrieved from state store
- returns
- pair of decoded byte array without virtual column family id prefix and name of column family
- def encodeStateRowWithPrefix(data: Array[Byte], vcfId: Short): Array[Byte]
Function to encode state row with virtual col family id prefix
Function to encode state row with virtual col family id prefix
- data
- passed byte array to be stored in state store
- vcfId
- virtual column family id
- returns
- encoded byte array with virtual column family id prefix
- 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 getColumnFamilyBytesAsId(data: Array[Byte]): Short
Function to decode virtual column family id from byte array
Function to decode virtual column family id from byte array
- data
- passed byte array retrieved from state store
- returns
- virtual column family id
- def getColumnFamilyIdAsBytes(virtualColFamilyId: Short): Array[Byte]
Encodes a virtual column family ID into a byte array suitable for RocksDB.
Encodes a virtual column family ID into a byte array suitable for RocksDB.
This method creates a fixed-size byte array prefixed with the virtual column family ID, which is used to partition data within RocksDB.
- virtualColFamilyId
The column family identifier to encode
- returns
A byte array containing the encoded column family ID
- def getDataEncoder(stateStoreEncoding: String, encoderCacheKey: StateRowEncoderCacheKey, keyStateEncoderSpec: KeyStateEncoderSpec, valueSchema: StructType, stateSchemaProvider: Option[StateSchemaProvider], columnFamilyName: Option[String] = None): RocksDBDataEncoder
Creates and returns a data encoder for the state store based on the specified encoding type.
Creates and returns a data encoder for the state store based on the specified encoding type. This method handles caching of encoders to improve performance by reusing encoder instances when possible.
The method supports two encoding types: - Avro: Uses Apache Avro for serialization with schema evolution support - UnsafeRow: Uses Spark's internal row format for optimal performance
- stateStoreEncoding
The encoding type to use ("avro" or "unsaferow")
- encoderCacheKey
A unique key for caching the encoder instance, typically combining query ID, operator ID, partition ID, and column family name
- keyStateEncoderSpec
Specification for how to encode keys, including schema and any prefix/range scan requirements
- valueSchema
The schema for the values to be encoded
- returns
A RocksDBDataEncoder instance configured for the specified encoding type
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- 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)