Class AbstractDataBag<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>, DataBag<E>, org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sink<E>
    Direct Known Subclasses:
    DefaultDataBag, SortedDataBag

    public abstract class AbstractDataBag<E>
    extends java.lang.Object
    implements DataBag<E>
    Abstract implementation of DataBag. Used as a parent for all three of the types of data bags.
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractDataBag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()  
      void send​(E item)  
      long size()
      Get the number of elements in the bag, both in memory and on disk.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.jena.atlas.lib.Closeable

        close
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from interface org.apache.jena.atlas.lib.Sink

        flush
    • Constructor Detail

      • AbstractDataBag

        public AbstractDataBag()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • size

        public long size()
        Description copied from interface: DataBag
        Get the number of elements in the bag, both in memory and on disk.
        Specified by:
        size in interface DataBag<E>
        Returns:
        number of elements in the bag
      • send

        public void send​(E item)
        Specified by:
        send in interface org.apache.jena.atlas.lib.Sink<E>