Search in sources :

Example 1 with CacheDataTree

use of org.apache.ignite.internal.processors.cache.tree.CacheDataTree in project ignite by apache.

the class IgniteCacheOffheapManagerImpl method createCacheDataStore0.

/**
 * @param p Partition.
 * @return Cache data store.
 * @throws IgniteCheckedException If failed.
 */
protected CacheDataStore createCacheDataStore0(int p) throws IgniteCheckedException {
    final long rootPage = allocateForTree();
    CacheDataRowStore rowStore = new CacheDataRowStore(grp, grp.freeList(), p);
    String idxName = treeName(p);
    CacheDataTree dataTree = new CacheDataTree(grp, idxName, grp.reuseList(), rowStore, rootPage, true);
    return new CacheDataStoreImpl(p, idxName, rowStore, dataTree);
}
Also used : CacheDataTree(org.apache.ignite.internal.processors.cache.tree.CacheDataTree) CacheDataRowStore(org.apache.ignite.internal.processors.cache.tree.CacheDataRowStore)

Aggregations

CacheDataRowStore (org.apache.ignite.internal.processors.cache.tree.CacheDataRowStore)1 CacheDataTree (org.apache.ignite.internal.processors.cache.tree.CacheDataTree)1