Class NodeStateEntryBatch
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.pipelined.NodeStateEntryBatch
-
public class NodeStateEntryBatch extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NodeStateEntryBatch.BufferFullException
-
Constructor Summary
Constructors Constructor Description NodeStateEntryBatch(ByteBuffer buffer, int maxEntries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addEntry(String path, byte[] entryData)
int
capacity()
static NodeStateEntryBatch
createNodeStateEntryBatch(int bufferSizeBytes, int maxNumEntries)
void
flip()
ByteBuffer
getBuffer()
boolean
isAtMaxEntries()
int
numberOfEntries()
void
reset()
int
sizeOfEntriesBytes()
-
-
-
Constructor Detail
-
NodeStateEntryBatch
public NodeStateEntryBatch(ByteBuffer buffer, int maxEntries)
-
-
Method Detail
-
createNodeStateEntryBatch
public static NodeStateEntryBatch createNodeStateEntryBatch(int bufferSizeBytes, int maxNumEntries)
-
addEntry
public int addEntry(String path, byte[] entryData) throws NodeStateEntryBatch.BufferFullException
-
getBuffer
public ByteBuffer getBuffer()
-
isAtMaxEntries
public boolean isAtMaxEntries()
-
flip
public void flip()
-
reset
public void reset()
-
sizeOfEntriesBytes
public int sizeOfEntriesBytes()
-
numberOfEntries
public int numberOfEntries()
-
capacity
public int capacity()
-
-