Uses of Class
com.exonum.binding.common.proofs.map.DbKey
Package | Description |
---|---|
com.exonum.binding.common.proofs | |
com.exonum.binding.common.proofs.map |
-
Uses of DbKey in com.exonum.binding.common.proofs
Methods in com.exonum.binding.common.proofs that return types with arguments of type DbKey Modifier and Type Method Description static Funnel<DbKey>
DbKeyCompressedFunnel. dbKeyCompressedFunnel()
static Funnel<DbKey>
DbKeyFunnel. dbKeyFunnel()
Methods in com.exonum.binding.common.proofs with parameters of type DbKey Modifier and Type Method Description void
DbKeyCompressedFunnel. funnel(DbKey from, PrimitiveSink into)
void
DbKeyFunnel. funnel(DbKey from, PrimitiveSink into)
-
Uses of DbKey in com.exonum.binding.common.proofs.map
Methods in com.exonum.binding.common.proofs.map that return DbKey Modifier and Type Method Description DbKey
DbKey. commonPrefix(DbKey other)
Returns new branch DbKey (unless common prefix of two equals DbKeys is requested, in which case this DbKey itself is returned), which is a common prefix of this and another DbKey.static DbKey
DbKey. fromBytes(byte[] rawDbKey)
Creates a database key.DbKey
MapProofEntry. getDbKey()
Returns a database key of this node.static DbKey
DbKey. newBranchKey(byte[] keySlice, int numSignificantBits)
Creates a new branch database key.static DbKey
DbKey. newLeafKey(byte[] keySlice)
Given key as a byte array, returns new leaf DbKey.static DbKey
DbKey. newLeafKey(com.google.protobuf.ByteString key)
Given key as a ByteString, returns new leaf DbKey.Methods in com.exonum.binding.common.proofs.map with parameters of type DbKey Modifier and Type Method Description DbKey
DbKey. commonPrefix(DbKey other)
Returns new branch DbKey (unless common prefix of two equals DbKeys is requested, in which case this DbKey itself is returned), which is a common prefix of this and another DbKey.int
DbKey. compareTo(DbKey other)
The following algorithm is used for comparison: Try to find a first bit index at which this key is greater than the other key (i.e., a bit of this key is 1 and the corresponding bit of the other key is 0), and vice versa.boolean
DbKey. isPrefixOf(DbKey other)
Returns true if thisDbKey
is a prefix of thatDbKey
.