org.apache.jena.tdb.store.bulkloader3
Class MultiThreadedSortedDataBag<E>

java.lang.Object
  extended by org.openjena.atlas.data.AbstractDataBag<E>
      extended by 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>


Field Summary
static int MAX_SPILL_FILES
           
 
Constructor Summary
MultiThreadedSortedDataBag(ThresholdPolicy<E> policy, SerializationFactory<E> serializerFactory, Comparator<? super E> comparator)
           
 
Method Summary
 void add(E item)
           
 void close()
           
 void flush()
           
 boolean isDistinct()
           
 boolean isSorted()
           
 Iterator<E> iterator()
          Returns an iterator over a set of elements of type E.
 void spill()
           
 
Methods inherited from class org.openjena.atlas.data.AbstractDataBag
addAll, addAll, isEmpty, send, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_SPILL_FILES

public static int MAX_SPILL_FILES
Constructor Detail

MultiThreadedSortedDataBag

public MultiThreadedSortedDataBag(ThresholdPolicy<E> policy,
                                  SerializationFactory<E> serializerFactory,
                                  Comparator<? super E> comparator)
Method Detail

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