Class AbstractDataBag<E>

java.lang.Object
org.apache.jena.atlas.data.AbstractDataBag<E>
All Implemented Interfaces:
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 Object implements DataBag<E>
Abstract implementation of DataBag. Used as a parent for all three of the types of data bags.
  • Constructor Details

    • AbstractDataBag

      public AbstractDataBag()
  • Method Details

    • 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>