Class OrderIterator.SerializedQueue<E extends Serializable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.OrderIterator.SerializedQueue<E>
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<E>
,Collection<E>
,Queue<E>
- Enclosing class:
OrderIterator
private static class OrderIterator.SerializedQueue<E extends Serializable>
extends AbstractQueue<E>
implements Closeable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSerializedQueue
(String prefix) SerializedQueue
(String prefix, File directory) -
Method Summary
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Field Details
-
file
-
output
-
input
-
size
private int size -
next
-
last
-
-
Constructor Details
-
SerializedQueue
- Throws:
IOException
-
SerializedQueue
- Throws:
IOException
-
-
Method Details
-
peekLast
-
offer
- Specified by:
offer
in interfaceQueue<E extends Serializable>
-
poll
- Specified by:
poll
in interfaceQueue<E extends Serializable>
-
peek
- Specified by:
peek
in interfaceQueue<E extends Serializable>
-
iterator
- Specified by:
iterator
in interfaceCollection<E extends Serializable>
- Specified by:
iterator
in interfaceIterable<E extends Serializable>
- Specified by:
iterator
in classAbstractCollection<E extends Serializable>
-
size
public int size()- Specified by:
size
in interfaceCollection<E extends Serializable>
- Specified by:
size
in classAbstractCollection<E extends Serializable>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-