Class PartitionMetaStorageImpl<T extends Storable>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.DataStructure
-
- org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList
-
- org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList<T>
-
- org.apache.ignite.internal.processors.cache.persistence.partstorage.PartitionMetaStorageImpl<T>
-
- All Implemented Interfaces:
FreeList<T>,PartitionMetaStorage<T>,ReuseList
public class PartitionMetaStorageImpl<T extends Storable> extends AbstractFreeList<T> implements PartitionMetaStorage<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList
PagesList.PagesCache, PagesList.Stripe
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList
bucketsSize, changed, DFLT_PAGES_LIST_TRY_LOCK_ATTEMPTS, IGNITE_PAGES_LIST_STRIPES_PER_BUCKET, IGNITE_PAGES_LIST_TRY_LOCK_ATTEMPTS, log, pageCacheChanged
-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.DataStructure
grpId, grpName, metrics, pageFlag, pageIoRslvr, pageMem, reuseList, rnd, wal
-
-
Constructor Summary
Constructors Constructor Description PartitionMetaStorageImpl(int cacheGrpId, String name, DataRegion memPlc, @Nullable ReuseList reuseList, @Nullable IgniteWriteAheadLogManager wal, long metaPageId, boolean initNew, PageLockTrackerManager pageLockTrackerManager, GridKernalContext ctx, @Nullable AtomicLong pageListCacheLimit, byte pageFlag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]readRow(long link)Read row as byte array from data pages.-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.freelist.AbstractFreeList
addForRecycle, casBucket, dumpStatistics, emptyDataPages, freeSpace, getBucket, getBucketCache, getBucketIndex, getPageFreeSpace, initRecycledPage, insertDataRow, insertDataRows, isReuseBucket, recycledPagesCount, removeDataRowByLink, takeRecycledPage, toString, updateDataRow
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList
bucketsCount, bucketSize, cachedPagesCount, corruptedFreeListException, corruptedFreeListException, corruptedFreeListException, init, initRecycledPage0, initReusedPage, metaPageId, put, removeDataPage, saveMetadata, storedPagesCount, stripesCount, takeEmptyPage
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.DataStructure
acquirePage, allocatePage, allocatePage, allocatePageNoReuse, close, groupId, init, name, needWalDeltaRecord, pageSize, randomInt, read, read, readLock, readUnlock, recyclePage, releasePage, tryWriteLock, write, write, write, write, writeLock, writeUnlock, writeUnlock
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.partstorage.PartitionMetaStorage
insertDataRow, metaPageId, removeDataRowByLink, saveMetadata
-
-
-
-
Constructor Detail
-
PartitionMetaStorageImpl
public PartitionMetaStorageImpl(int cacheGrpId, String name, DataRegion memPlc, @Nullable @Nullable ReuseList reuseList, @Nullable @Nullable IgniteWriteAheadLogManager wal, long metaPageId, boolean initNew, PageLockTrackerManager pageLockTrackerManager, GridKernalContext ctx, @Nullable @Nullable AtomicLong pageListCacheLimit, byte pageFlag) throws IgniteCheckedException- Parameters:
cacheGrpId- Cache group id.name- Name.memPlc- Mem policy.reuseList- Reuse list.metaPageId- Meta page id.initNew- Initialize new.ctx- Context.pageFlag- Default flag value for allocated pages.- Throws:
IgniteCheckedException
-
-
Method Detail
-
readRow
public final byte[] readRow(long link) throws IgniteCheckedExceptionRead row as byte array from data pages.- Specified by:
readRowin interfacePartitionMetaStorage<T extends Storable>- Parameters:
link- Link.- Throws:
IgniteCheckedException- If failed.
-
-