|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openjena.atlas.data.AbstractDataBag<E>
public abstract class AbstractDataBag<E>
Abstract implementation of DataBag. Used as a parent for all three of the types of data bags.
Constructor Summary | |
---|---|
AbstractDataBag()
|
Method Summary | |
---|---|
void |
addAll(Iterable<? extends E> c)
Add contents of an Iterable to the bag. |
void |
addAll(Iterator<? extends E> it)
Add contents of an Iterator to the bag. |
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.openjena.atlas.data.DataBag |
---|
add, isDistinct, isSorted |
Methods inherited from interface org.openjena.atlas.lib.Sink |
---|
flush |
Methods inherited from interface org.openjena.atlas.lib.Closeable |
---|
close |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
public AbstractDataBag()
Method Detail |
---|
public boolean isEmpty()
public long size()
DataBag
size
in interface DataBag<E>
public void addAll(Iterable<? extends E> c)
DataBag
addAll
in interface DataBag<E>
c
- iterable to add contents of.public void addAll(Iterator<? extends E> it)
DataBag
addAll
in interface DataBag<E>
it
- iterator to add contents of.public void send(E item)
send
in interface Sink<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |