public abstract static class MappedByteBufferQueue.MappedByteBufferSegmentQueue<T> extends AbstractQueue<T>
Modifier and Type | Field and Description |
---|---|
protected static int |
EOF |
Constructor and Description |
---|
MappedByteBufferSegmentQueue(int index,
int thresholdBytes,
boolean hasMaxQueueSize) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
long |
getInMemByteSize() |
protected abstract Queue<T> |
getInMemoryQueue() |
int |
index() |
boolean |
isFlushed() |
Iterator<T> |
iterator() |
boolean |
offer(T e) |
T |
peek() |
T |
poll() |
protected abstract T |
readFromBuffer(MappedByteBuffer buffer) |
int |
size() |
protected abstract int |
sizeOf(T e) |
protected abstract void |
writeToBuffer(MappedByteBuffer buffer,
T e) |
add, addAll, element, remove
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
protected static final int EOF
public MappedByteBufferSegmentQueue(int index, int thresholdBytes, boolean hasMaxQueueSize)
protected abstract int sizeOf(T e)
protected abstract void writeToBuffer(MappedByteBuffer buffer, T e)
protected abstract T readFromBuffer(MappedByteBuffer buffer)
public int index()
public int size()
size
in interface Collection<T>
size
in class AbstractCollection<T>
public long getInMemByteSize()
public boolean isFlushed()
public boolean offer(T e)
public T peek()
public T poll()
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in class AbstractCollection<T>
public void clear()
clear
in interface Collection<T>
clear
in class AbstractQueue<T>
public void close()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.