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
PrefixedRust Access.
-
-
Field Summary
-
Fields inherited from class com.exonum.binding.core.proxy.AbstractNativeProxy
nativeHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrefixedfromHandle(long prefixedNativeHandle, Cleaner cleaner)Creates a new Prefixed access from the native handle.CleanergetCleaner()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 Detail
-
fromHandle
public static Prefixed fromHandle(long prefixedNativeHandle, Cleaner cleaner)
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
public Cleaner getCleaner()
Description copied from class:AbstractAccessReturns the cleaner of this access. It is supposed to be used with collections and other objects depending on this access.- Specified by:
getCleanerin classAbstractAccess
-
-