Class Prefixed
java.lang.Object
com.exonum.binding.core.proxy.AbstractNativeProxy
com.exonum.binding.core.storage.database.AbstractAccess
com.exonum.binding.core.storage.database.Prefixed
- All Implemented Interfaces:
Access
public final class Prefixed extends AbstractAccess
A prefixed database access. It uses a base Access, and adds an address resolution.
The Prefixed Access resolves the index addresses by prepending a namespace, followed by a dot ('.'), to the name part of the address.
This class is a native proxy of the Prefixed
Rust Access.
-
Field Summary
-
Method Summary
Modifier and Type Method Description static Prefixed
fromHandle(long prefixedNativeHandle, Cleaner cleaner)
Creates a new Prefixed access from the native handle.Cleaner
getCleaner()
Returns the cleaner of this access.Methods inherited from class com.exonum.binding.core.storage.database.AbstractAccess
canModify, getAccessNativeHandle, getEntry, getKeySet, getList, getMap, getOpenIndexes, getProofEntry, getProofList, getProofMap, getRawProofMap, getValueSet, nativeCanModify, nativeFree
Methods inherited from class com.exonum.binding.core.proxy.AbstractNativeProxy
getNativeHandle, isValidHandle
-
Method Details
-
fromHandle
Creates a new Prefixed access from the native handle. The destructor will be registered in the given cleaner.- Parameters:
prefixedNativeHandle
- a handle to the native Prefixed Accesscleaner
- a cleaner to destroy the native peer and any dependent objects
-
getCleaner
Description copied from class:AbstractAccess
Returns the cleaner of this access. It is supposed to be used with collections and other objects depending on this access.- Specified by:
getCleaner
in classAbstractAccess
-