Class 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>
      number of elements in the bag
    • send

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