public class UnsynchronizedUnboundedChunkBuffer<E> extends AbstractUnsynchronizedArrayBuffer<E>
Queue, which may be drained by an
iterator().
This implementation is NOT thread-safe.
TestUnsynchronizedUnboundedChunkBuffer| Constructor and Description |
|---|
UnsynchronizedUnboundedChunkBuffer(int capacity,
Class<? extends E> cls) |
UnsynchronizedUnboundedChunkBuffer(int capacity,
Class<? extends E> cls,
IElementFilter<E> filter,
IKeyOrder<E> keyOrder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleChunk(E[] chunk)
Add the chunk to the target buffer.
|
IChunkedOrderedIterator<E> |
iterator()
Iterator drains chunks from a snapshot of the queue (shallow copy).
|
public UnsynchronizedUnboundedChunkBuffer(int capacity,
Class<? extends E> cls)
capacity - The capacity of the backing buffer.cls - The component type of the backing array.public UnsynchronizedUnboundedChunkBuffer(int capacity,
Class<? extends E> cls,
IElementFilter<E> filter,
IKeyOrder<E> keyOrder)
capacity - The capacity of the backing buffer.cls - The component type of the backing array.filter - Filter to keep elements out of the buffer (optional).keyOrder - The order of the elements in the chunks written onto the
buffer or null iff not known.protected final void handleChunk(E[] chunk)
handleChunk in class AbstractUnsynchronizedArrayBuffer<E>chunk - A chunk.public IChunkedOrderedIterator<E> iterator()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.