public enum DataEntryPrefix extends Enum<DataEntryPrefix>
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
getBlockHashKey(long height) |
static byte[] |
getBlockMerkleTreeKey() |
static byte[] |
getBookkeeperKey() |
static byte[] |
getContractStateKey(Address addresshash) |
static byte[] |
getCurrentBlockKey() |
static byte[] |
getEventNotifyByBlockKey(int height) |
static byte[] |
getEventNotifyByTxKey(UInt256 txhash) |
static byte[] |
getHeaderIndexListKey(long startHeight) |
static byte[] |
getHeaderKey(UInt256 blockHash) |
static byte[] |
getMerkleTreeKey() |
static long |
getStartHeightByHeaderIndexKey(byte[] key) |
static byte[] |
getTransactionKey(UInt256 hash) |
static byte[] |
getVersionKey() |
byte |
value() |
static DataEntryPrefix |
valueOf(byte v) |
static DataEntryPrefix |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DataEntryPrefix[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DataEntryPrefix DATA_BLOCK
public static final DataEntryPrefix DATA_HEADER
public static final DataEntryPrefix DATA_TRANSACTION
public static final DataEntryPrefix ST_BOOKKEEPER
public static final DataEntryPrefix ST_CONTRACT
public static final DataEntryPrefix ST_STORAGE
public static final DataEntryPrefix ST_VALIDATOR
public static final DataEntryPrefix ST_VOTE
public static final DataEntryPrefix IX_HEADER_HASH_LIST
public static final DataEntryPrefix SYS_CURRENT_BLOCK
public static final DataEntryPrefix SYS_VERSION
public static final DataEntryPrefix SYS_CURRENT_STATE_ROOT
public static final DataEntryPrefix SYS_BLOCK_MERKLE_TREE
public static final DataEntryPrefix EVENT_NOTIFY
public static DataEntryPrefix[] values()
for (DataEntryPrefix c : DataEntryPrefix.values()) System.out.println(c);
public static DataEntryPrefix valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public byte value()
public static DataEntryPrefix valueOf(byte v)
public static byte[] getTransactionKey(UInt256 hash)
public static byte[] getHeaderKey(UInt256 blockHash)
public static byte[] getBlockHashKey(long height)
public static byte[] getCurrentBlockKey()
public static byte[] getBlockMerkleTreeKey()
public static byte[] getVersionKey()
public static byte[] getHeaderIndexListKey(long startHeight)
public static long getStartHeightByHeaderIndexKey(byte[] key)
public static byte[] getEventNotifyByTxKey(UInt256 txhash)
public static byte[] getEventNotifyByBlockKey(int height)
public static byte[] getContractStateKey(Address addresshash)
public static byte[] getBookkeeperKey()
public static byte[] getMerkleTreeKey()
Copyright © 2022. All rights reserved.