public static class RocksDBStateBackend.FinalFullyAsyncSnapshot extends Object implements KvStateSnapshot<Object,Object,ValueState<Object>,ValueStateDescriptor<Object>>
KvStateSnapshot
that holds the state of our one RocksDB data base.Modifier and Type | Field and Description |
---|---|
StateHandle<DataInputView> |
stateHandle |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
discardState()
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
long |
getStateSize()
Returns the size of the state in bytes.
|
public final StateHandle<DataInputView> stateHandle
public final void discardState() throws Exception
StateObject
discardState
in interface StateObject
Exception
public final long getStateSize() throws Exception
StateObject
If the the size is not known, return 0
.
getStateSize
in interface StateObject
Exception
- If the operation fails during size retrieval.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.