public class BtreeIndexHeader extends Object implements IndexHeader
| Modifier and Type | Field and Description |
|---|---|
static int |
BTREE_INDEX_TYPE_ID |
| Constructor and Description |
|---|
BtreeIndexHeader(int indexVersion,
int pageSize,
int headerSize,
KeyInfo keyInfo,
long count) |
| Modifier and Type | Method and Description |
|---|---|
long |
count() |
static IndexHeader |
createHeader(DataBlock headerBlock,
int pageSize,
long count,
KeyInfo keyInfo) |
int |
getHeaderSize() |
int |
getIndexVersion() |
KeyInfo |
getKeyInfo() |
int |
getPageSize() |
static IndexHeader |
loadAndValidateHeader(DataBlock dataBlock,
KeyInfo keyInfo) |
public static final int BTREE_INDEX_TYPE_ID
public BtreeIndexHeader(int indexVersion,
int pageSize,
int headerSize,
KeyInfo keyInfo,
long count)
public static IndexHeader loadAndValidateHeader(DataBlock dataBlock, KeyInfo keyInfo) throws JasDBStorageException, IOException
JasDBStorageExceptionIOExceptionpublic static IndexHeader createHeader(DataBlock headerBlock, int pageSize, long count, KeyInfo keyInfo) throws JasDBStorageException, IOException
JasDBStorageExceptionIOExceptionpublic long count()
count in interface IndexHeaderpublic KeyInfo getKeyInfo()
getKeyInfo in interface IndexHeaderpublic int getIndexVersion()
getIndexVersion in interface IndexHeaderpublic int getPageSize()
getPageSize in interface IndexHeaderpublic int getHeaderSize()
getHeaderSize in interface IndexHeaderCopyright © 2015. All rights reserved.