public interface IndexStorage
| Modifier and Type | Method and Description |
|---|---|
RootPage |
allocateCacheIndex(Integer cacheId,
String idxName,
int segment)
Allocate page for cache index.
|
RootPage |
allocateIndex(String idxName)
Get or allocate initial page for an index.
|
void |
destroy()
Destroy this meta store.
|
@Nullable RootPage |
dropCacheIndex(Integer cacheId,
String idxName,
int segment)
Deallocate index page and remove from tree.
|
@Nullable RootPage |
dropIndex(String idxName)
Deallocate index page and remove from tree.
|
@Nullable RootPage |
findCacheIndex(Integer cacheId,
String idxName,
int segment)
Find index root.
|
Collection<String> |
getIndexNames() |
boolean |
nameIsAssosiatedWithCache(String idxName,
int cacheId) |
@Nullable RootPage |
renameCacheIndex(Integer cacheId,
String oldIdxName,
String newIdxName,
int segment)
Renaming the root page of the index tree.
|
RootPage allocateCacheIndex(Integer cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment.IgniteCheckedException - If failed.RootPage allocateIndex(String idxName) throws IgniteCheckedException
idxName - 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.@Nullable @Nullable RootPage findCacheIndex(Integer cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment.IgniteCheckedException - If failed.@Nullable @Nullable RootPage dropCacheIndex(Integer cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment number.null if no page was removed.IgniteCheckedException - If failed.@Nullable @Nullable RootPage dropIndex(String idxName) throws IgniteCheckedException
idxName - Index name.null if no page was removed.IgniteCheckedException - If failed.@Nullable @Nullable RootPage renameCacheIndex(Integer cacheId, String oldIdxName, String newIdxName, int segment) throws IgniteCheckedException
cacheId - Cache id.oldIdxName - Old name of the index tree.newIdxName - New name of the index tree.segment - Segment index.IgniteCheckedException - If failed.void destroy()
throws IgniteCheckedException
IgniteCheckedException - If failed.Collection<String> getIndexNames() throws IgniteCheckedException
IgniteCheckedException - If failed.boolean nameIsAssosiatedWithCache(String idxName, int cacheId)
idxName - Index name to check.cacheId - Cache id to check.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023