use of org.rocksdb.RocksDBException in project flink by apache.
the class AbstractRocksDBAppendingState method getInternal.
SV getInternal(byte[] key) {
try {
byte[] valueBytes = backend.db.get(columnFamily, key);
if (valueBytes == null) {
return null;
}
dataInputView.setBuffer(valueBytes);
return valueSerializer.deserialize(dataInputView);
} catch (IOException | RocksDBException e) {
throw new FlinkRuntimeException("Error while retrieving data from RocksDB", e);
}
}
Aggregations