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
JasDBStorageException
IOException
public static IndexHeader createHeader(DataBlock headerBlock, int pageSize, long count, KeyInfo keyInfo) throws JasDBStorageException, IOException
JasDBStorageException
IOException
public long count()
count
in interface IndexHeader
public KeyInfo getKeyInfo()
getKeyInfo
in interface IndexHeader
public int getIndexVersion()
getIndexVersion
in interface IndexHeader
public int getPageSize()
getPageSize
in interface IndexHeader
public int getHeaderSize()
getHeaderSize
in interface IndexHeader
Copyright © 2015. All rights reserved.