public class IndexStorageImpl extends Object implements IndexStorage
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexStorageImpl.MetaStoreInnerIO |
static class |
IndexStorageImpl.MetaStoreLeafIO |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_IDX_NAME_LEN
Max index name length (bytes num)
|
static int |
RESERVED_IDX_NAME_LEN
Reserved size for index name.
|
| Constructor and Description |
|---|
IndexStorageImpl(PageMemory pageMem,
IgniteWriteAheadLogManager wal,
AtomicLong globalRmvId,
int grpId,
int allocPartId,
byte allocSpace,
ReuseList reuseList,
long rootPageId,
boolean initNew) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy this meta store.
|
RootPage |
dropRootPage(String idxName)
Deallocate index page and remove from tree.
|
RootPage |
getOrAllocateForTree(String idxName)
Get or allocate initial page for an index.
|
public static final int MAX_IDX_NAME_LEN
public static final int RESERVED_IDX_NAME_LEN
public IndexStorageImpl(PageMemory pageMem, IgniteWriteAheadLogManager wal, AtomicLong globalRmvId, int grpId, int allocPartId, byte allocSpace, ReuseList reuseList, long rootPageId, boolean initNew)
pageMem - Page memory.wal - Write ahead log manager.public RootPage getOrAllocateForTree(String idxName) throws IgniteCheckedException
getOrAllocateForTree in interface IndexStorageidxName - Index name.RootPage that keeps pageId, allocated flag that shows whether the page
was newly allocated, and rootId that is counter which increments each time new page allocated.IgniteCheckedException - If failed.public RootPage dropRootPage(String idxName) throws IgniteCheckedException
dropRootPage in interface IndexStorageidxName - Index name.IgniteCheckedException - If failed.public void destroy()
throws IgniteCheckedException
destroy in interface IndexStorageIgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018