org.apache.jena.tdb.store.bulkloader3
Class MultiThreadedSortedDataBag<E>
java.lang.Object
org.openjena.atlas.data.AbstractDataBag<E>
org.apache.jena.tdb.store.bulkloader3.MultiThreadedSortedDataBag<E>
- All Implemented Interfaces:
- Iterable<E>, DataBag<E>, Closeable, Sink<E>
public class MultiThreadedSortedDataBag<E>
- extends AbstractDataBag<E>
MAX_SPILL_FILES
public static int MAX_SPILL_FILES
MultiThreadedSortedDataBag
public MultiThreadedSortedDataBag(ThresholdPolicy<E> policy,
SerializationFactory<E> serializerFactory,
Comparator<? super E> comparator)
isSorted
public boolean isSorted()
isDistinct
public boolean isDistinct()
add
public void add(E item)
spill
public void spill()
flush
public void flush()
iterator
public Iterator<E> iterator()
- Returns an iterator over a set of elements of type E. If you do not exhaust
the iterator, you should call
Iter.close(Iterator)
to be sure any open file handles are closed.
- Returns:
- an Iterator
close
public void close()
Licenced under the Apache License, Version 2.0