public abstract class RocksDBState<K,V,CacheV> extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
RocksDBState.ByteArray
A class wraps byte[] to implement equals and hashCode.
|
protected static class |
RocksDBState.Reference
A class wraps byte[] to indicate contain or not contain.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<RocksDBState.ByteArray,CacheV> |
cache |
protected org.rocksdb.ColumnFamilyHandle |
columnFamily |
protected org.rocksdb.RocksDB |
db |
protected DataOutputSerializer |
keyOutView |
protected Serializer<K> |
keySerializer |
protected RocksDBStateFactory |
stateFactory |
protected DataInputDeserializer |
valueInputView |
protected DataOutputSerializer |
valueOutputView |
protected Serializer<V> |
valueSerializer |
protected org.rocksdb.WriteOptions |
writeOptions |
Constructor and Description |
---|
RocksDBState(RocksDBStateFactory stateFactory,
org.rocksdb.ColumnFamilyHandle columnFamily,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long lruCacheSize) |
Modifier and Type | Method and Description |
---|---|
BulkLoader |
createBulkLoader() |
static BinaryExternalSortBuffer |
createBulkLoadSorter(IOManager ioManager,
CoreOptions options) |
protected RocksDBState.Reference |
ref(byte[] bytes) |
byte[] |
serializeKey(K key) |
protected RocksDBState.ByteArray |
wrap(byte[] bytes) |
protected final RocksDBStateFactory stateFactory
protected final org.rocksdb.RocksDB db
protected final org.rocksdb.WriteOptions writeOptions
protected final org.rocksdb.ColumnFamilyHandle columnFamily
protected final Serializer<K> keySerializer
protected final Serializer<V> valueSerializer
protected final DataOutputSerializer keyOutView
protected final DataInputDeserializer valueInputView
protected final DataOutputSerializer valueOutputView
protected final org.apache.paimon.shade.caffeine2.com.github.benmanes.caffeine.cache.Cache<RocksDBState.ByteArray,CacheV> cache
public RocksDBState(RocksDBStateFactory stateFactory, org.rocksdb.ColumnFamilyHandle columnFamily, Serializer<K> keySerializer, Serializer<V> valueSerializer, long lruCacheSize)
public byte[] serializeKey(K key) throws IOException
IOException
protected RocksDBState.ByteArray wrap(byte[] bytes)
protected RocksDBState.Reference ref(byte[] bytes)
public BulkLoader createBulkLoader()
public static BinaryExternalSortBuffer createBulkLoadSorter(IOManager ioManager, CoreOptions options)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.