class NoPrefixKeyStateEncoder extends RocksDBStateEncoder
Encodes/decodes UnsafeRows to versioned byte arrays. It uses the first byte of the generated byte array to store the version the describes how the row is encoded in the rest of the byte array. Currently, the default version is 0,
VERSION 0: [ VERSION (1 byte) | ROW (N bytes) ] The bytes of a UnsafeRow is written unmodified to starting from offset 1 (offset 0 is the version byte of value 0). That is, if the unsafe row has N bytes, then the generated array byte will be N+1 bytes.
- Alphabetic
- By Inheritance
- NoPrefixKeyStateEncoder
- RocksDBStateEncoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NoPrefixKeyStateEncoder(keySchema: StructType, valueSchema: StructType)
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
decode(byteArrayTuple: ByteArrayPair): UnsafeRowPair
Decode pair of key-value byte arrays in a pair of key-value UnsafeRows.
Decode pair of key-value byte arrays in a pair of key-value UnsafeRows.
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
- Note
The UnsafeRow returned is reused across calls, and the UnsafeRow just points to the given byte array.
-
def
decodeKey(keyBytes: Array[Byte]): UnsafeRow
Decode byte array for a key to a UnsafeRow.
Decode byte array for a key to a UnsafeRow.
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
- Note
The UnsafeRow returned is reused across calls, and the UnsafeRow just points to the given byte array.
-
def
decodeValue(valueBytes: Array[Byte]): UnsafeRow
Decode byte array for a value to a UnsafeRow.
Decode byte array for a value to a UnsafeRow.
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
- Note
The UnsafeRow returned is reused across calls, and the UnsafeRow just points to the given byte array.
-
def
encodeKey(row: UnsafeRow): Array[Byte]
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
-
def
encodePrefixKey(prefixKey: UnsafeRow): Array[Byte]
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
-
def
encodeValue(row: UnsafeRow): Array[Byte]
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractPrefixKey(key: UnsafeRow): UnsafeRow
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
supportPrefixKeyScan: Boolean
- Definition Classes
- NoPrefixKeyStateEncoder → RocksDBStateEncoder
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated