Package org.aksw.commons.io.block.impl
Class PageManagerForByteBuffer
java.lang.Object
org.aksw.commons.io.block.impl.PageManagerForByteBuffer
- All Implemented Interfaces:
BlockSource,PageManager
PageManager wrapper for a static buffer
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongThe maximum position in the underlying bufferintThe pageSize.org.aksw.commons.util.ref.Ref<Page> requestBufferForPage(long page) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.io.block.api.PageManager
contentAtOrAfter, contentAtOrBefore, getSizeOfBlock, hasBlockAfter, hasBlockBefore, size
-
Field Details
-
pageForBuf
protected long pageForBuf -
staticBuffer
-
-
Constructor Details
-
PageManagerForByteBuffer
-
-
Method Details
-
requestBufferForPage
- Specified by:
requestBufferForPagein interfacePageManager
-
getPageSize
public int getPageSize()Description copied from interface:PageManagerThe pageSize. Must never change during the life time of a page manager.- Specified by:
getPageSizein interfacePageManager- Returns:
-
getEndPos
public long getEndPos()Description copied from interface:PageManagerThe maximum position in the underlying buffer- Specified by:
getEndPosin interfacePageManager- Returns:
-