@ThreadSafe public class MVMapSnapshot extends MVMapKVStore implements CloseableKVStore
MVMap
.
Instances must be close()
'd when no longer needed to allow the underlying MVMap
version to be released.
Mutation operations throw UnsupportedOperationException
.
log
Constructor and Description |
---|
MVMapSnapshot(org.h2.mvstore.MVMap<byte[],byte[]> mvmap)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this
KVStore and release any resources associated with it. |
get, getAtLeast, getAtMost, getMVMap, getRange, put, remove, toString
adjustCounter, decodeCounter, encodeCounter, removeRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
adjustCounter, apply, decodeCounter, encodeCounter, get, getAtLeast, getAtMost, getRange, getRange, getRange, put, remove, removeRange, removeRange
public MVMapSnapshot(org.h2.mvstore.MVMap<byte[],byte[]> mvmap)
mvmap
- the underlying MVMap
to snapshotNullPointerException
- if mvmap
is nullpublic void close()
CloseableKVStore
KVStore
and release any resources associated with it.
If this instance is already closed, then nothing happens.
close
in interface CloseableKVStore
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2022. All rights reserved.