public class MultiPageEntryBuffer extends Object implements SharedEntryBuffer
Since only a limited number of stores actually get very big, the parent store switches from SinglePageEntryBuffer to this implementation when a mutation brings the max number of entries beyond maxPageSize threshold.
| Constructor and Description |
|---|
MultiPageEntryBuffer(org.janusgraph.diskstorage.inmemory.BufferPage initialPage) |
| Modifier and Type | Method and Description |
|---|---|
int |
byteSize() |
SharedEntryBufferFragmentationReport |
createFragmentationReport(int maxPageSize) |
void |
dumpTo(DataOutputStream out) |
EntryList |
getSlice(KeySliceQuery query) |
boolean |
isEmpty() |
boolean |
isPaged() |
void |
mutate(Entry[] add,
Entry[] del,
int maxPageSize) |
int |
numEntries() |
int |
numPages() |
void |
quickDefragment(int maxPageSize) |
public MultiPageEntryBuffer(org.janusgraph.diskstorage.inmemory.BufferPage initialPage)
public int numPages()
numPages in interface SharedEntryBufferpublic int numEntries()
numEntries in interface SharedEntryBufferpublic int byteSize()
byteSize in interface SharedEntryBufferpublic boolean isEmpty()
isEmpty in interface SharedEntryBufferpublic EntryList getSlice(KeySliceQuery query)
getSlice in interface SharedEntryBufferpublic void mutate(Entry[] add, Entry[] del, int maxPageSize)
mutate in interface SharedEntryBufferpublic boolean isPaged()
isPaged in interface SharedEntryBufferpublic SharedEntryBufferFragmentationReport createFragmentationReport(int maxPageSize)
createFragmentationReport in interface SharedEntryBufferpublic void quickDefragment(int maxPageSize)
quickDefragment in interface SharedEntryBufferpublic void dumpTo(DataOutputStream out) throws IOException
dumpTo in interface SharedEntryBufferIOExceptionCopyright © 2012–2023. All rights reserved.