public class RocksDBStateFactory extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
MERGE_OPERATOR_NAME |
Constructor and Description |
---|
RocksDBStateFactory(String path,
Options conf,
java.time.Duration ttlSecs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.rocksdb.RocksDB |
db() |
<K,V> RocksDBListState<K,V> |
listState(String name,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long lruCacheSize) |
org.rocksdb.Options |
options() |
String |
path() |
<K,V> RocksDBSetState<K,V> |
setState(String name,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long lruCacheSize) |
<K,V> RocksDBValueState<K,V> |
valueState(String name,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
long lruCacheSize) |
public static final String MERGE_OPERATOR_NAME
public RocksDBStateFactory(String path, Options conf, @Nullable java.time.Duration ttlSecs) throws IOException
IOException
public org.rocksdb.RocksDB db()
public org.rocksdb.Options options()
public String path()
public <K,V> RocksDBValueState<K,V> valueState(String name, Serializer<K> keySerializer, Serializer<V> valueSerializer, long lruCacheSize) throws IOException
IOException
public <K,V> RocksDBSetState<K,V> setState(String name, Serializer<K> keySerializer, Serializer<V> valueSerializer, long lruCacheSize) throws IOException
IOException
public <K,V> RocksDBListState<K,V> listState(String name, Serializer<K> keySerializer, Serializer<V> valueSerializer, long lruCacheSize) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.