public class RocksDBListState<K,V> extends RocksDBState<K,V,List<V>>
RocksDBState.ByteArray, RocksDBState.Reference
cache, columnFamily, db, keyOutView, keySerializer, stateFactory, valueInputView, valueOutputView, valueSerializer, writeOptions
Constructor and Description |
---|
RocksDBListState(RocksDBStateFactory stateFactory,
org.rocksdb.ColumnFamilyHandle columnFamily,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long lruCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(K key,
V value) |
List<V> |
get(K key) |
byte[] |
serializeList(List<byte[]> valueList) |
byte[] |
serializeValue(V value) |
createBulkLoader, createBulkLoadSorter, ref, serializeKey, wrap
public RocksDBListState(RocksDBStateFactory stateFactory, org.rocksdb.ColumnFamilyHandle columnFamily, Serializer<K> keySerializer, Serializer<V> valueSerializer, long lruCacheSize)
public void add(K key, V value) throws IOException
IOException
public List<V> get(K key) throws IOException
IOException
public byte[] serializeValue(V value) throws IOException
IOException
public byte[] serializeList(List<byte[]> valueList) throws IOException
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.