K
- The key type of the table.V
- The value type of the table.public interface ForStInnerTable<K,V>
The mapping between ForStInnerTable and ForStDB's columnFamily can be one-to-one or many-to-one.
Modifier and Type | Method and Description |
---|---|
ForStDBGetRequest<K,V> |
buildDBGetRequest(StateRequest<?,?,?> stateRequest)
Build a
ForStDBGetRequest that belong to this ForStInnerTable with the given
stateRequest. |
ForStDBPutRequest<K,V> |
buildDBPutRequest(StateRequest<?,?,?> stateRequest)
Build a
ForStDBPutRequest that belong to ForStInnerTable with the given
stateRequest. |
V |
deserializeValue(byte[] value)
Deserialize the given bytes value to POJO value.
|
org.rocksdb.ColumnFamilyHandle |
getColumnFamilyHandle()
Get the columnFamily handle corresponding to table.
|
byte[] |
serializeKey(K key)
Serialize the given key to bytes.
|
byte[] |
serializeValue(V value)
Serialize the given value to the outputView.
|
org.rocksdb.ColumnFamilyHandle getColumnFamilyHandle()
byte[] serializeKey(K key) throws IOException
key
- the key to be serialized.IOException
- Thrown if the serialization encountered an I/O related error.byte[] serializeValue(V value) throws IOException
value
- the value to be serialized.IOException
- Thrown if the serialization encountered an I/O related error.V deserializeValue(byte[] value) throws IOException
value
- the value bytes to be deserialized.IOException
- Thrown if the deserialization encountered an I/O related error.ForStDBGetRequest<K,V> buildDBGetRequest(StateRequest<?,?,?> stateRequest)
ForStDBGetRequest
that belong to this ForStInnerTable
with the given
stateRequest.stateRequest
- The given stateRequest.ForStDBPutRequest<K,V> buildDBPutRequest(StateRequest<?,?,?> stateRequest)
ForStDBPutRequest
that belong to ForStInnerTable
with the given
stateRequest.stateRequest
- The given stateRequest.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.