Interface SliceWithPages<T>
- All Superinterfaces:
PageHelper, Slice<T>, SliceMetaDataBasic, org.aksw.commons.io.util.Sync
- All Known Implementing Classes:
SliceInMemoryCache, SliceWithPagesSyncToDisk
-
Method Summary
Modifier and TypeMethodDescriptiongetPageForPageId(long pageId) longdefault SliceAccessor<T> An accessor which allows for 'claiming' a sub-range of this slice.Methods inherited from interface PageHelper
getIndexInPageForOffset, getPageIdForOffset, getPageOffsetForPageIdMethods inherited from interface Slice
addEvictionGuard, computeFromMetaData, getArrayOps, getHasDataCondition, getReadWriteLock, isComplete, mutateMetaData, readMetaDataMethods inherited from interface SliceMetaDataBasic
getFailedRanges, getGaps, getKnownSize, getLoadedRanges, getMaximumKnownSize, getMinimumKnownSize, setKnownSize, setMaximumKnownSize, setMinimumKnownSize, updateMaximumKnownSize, updateMinimumKnownSizeMethods inherited from interface org.aksw.commons.io.util.Sync
sync
-
Method Details
-
getPageSize
long getPageSize()- Specified by:
getPageSizein interfacePageHelper
-
newSliceAccessor
Description copied from interface:SliceAn accessor which allows for 'claiming' a sub-range of this slice. The claimed range can be incrementally modified which may re-use already allocated resources (e.g. claimed pages) and thus improve performance. Sub-ranges of a slice can be loaded and iterated or inserted into. The sub-ranges can be modified dynamically.- Specified by:
newSliceAccessorin interfaceSlice<T>
-
getPageForPageId
-