be.SIRAPRISE.client
Class InsertionOrderTupleBag

java.lang.Object
  extended by be.SIRAPRISE.client.AbstractTupleContainer
      extended by be.SIRAPRISE.client.AbstractTupleBag
          extended by be.SIRAPRISE.client.InsertionOrderTupleBag
All Implemented Interfaces:
TupleBag, TupleContainer, java.lang.Iterable<Tuple>

public final class InsertionOrderTupleBag
extends AbstractTupleBag

An InsertionOrderTupleBag is a TupleBag that maintains its tuples in insertion order

Author:
Erwin Smout

Constructor Summary
InsertionOrderTupleBag(Heading heading)
          Creates the InsertionOrderTupleBag
 
Method Summary
 boolean addOK(Tuple tuple)
          "exit" method called by the addTuple() methods to check if it is OK to add the given tuple to this relation.
 
Methods inherited from class be.SIRAPRISE.client.AbstractTupleBag
addTupleWithoutHeadingCheck, clear, containsTuple, containsTuples, iterator, removeTuple, size
 
Methods inherited from class be.SIRAPRISE.client.AbstractTupleContainer
addTuplesWithHeadingCheck, addTuplesWithoutHeadingCheck, addTupleWithHeadingCheck, getHeading, printBodyEscapedWithBodyHeaderWithoutTypeNames, printBodyEscapedWithBodyHeaderWithTypeNames, printBodyEscapedWithoutBodyHeaderWithoutTypeNames, printBodyEscapedWithoutBodyHeaderWithTypeNames, printBodyWithBodyHeaderWithoutTypeNames, printBodyWithBodyHeaderWithTypeNames, printBodyWithoutBodyHeaderWithoutTypeNames, printBodyWithoutBodyHeaderWithTypeNames, printBodyXMLWithBodyHeader, printBodyXMLWithoutBodyHeader, printValueEscapedWithoutTypeNames, printValueEscapedWithTypeNames, printValueWithoutTypeNames, printValueWithTypeNames, printValueXML, removeTuples, toObjectArray, toObjectArrayIgnoringMissingSetters, toObjectCollection, toObjectCollectionIgnoringMissingSetters, toObjectsArray, toObjectsCollection, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface be.SIRAPRISE.client.TupleContainer
addTuplesWithHeadingCheck, addTuplesWithoutHeadingCheck, addTupleWithHeadingCheck, getHeading, printValueEscapedWithoutTypeNames, printValueEscapedWithTypeNames, printValueWithoutTypeNames, printValueWithTypeNames, printValueXML, removeTuples, toObjectArray, toObjectArrayIgnoringMissingSetters, toObjectCollection, toObjectCollectionIgnoringMissingSetters, toObjectsArray, toObjectsCollection
 

Constructor Detail

InsertionOrderTupleBag

public InsertionOrderTupleBag(Heading heading)
Creates the InsertionOrderTupleBag

Parameters:
heading - The heading that the tuples will conform to
Method Detail

addOK

public boolean addOK(Tuple tuple)
Description copied from class: AbstractTupleBag
"exit" method called by the addTuple() methods to check if it is OK to add the given tuple to this relation. This method should return false only in very specific circumstances.

Specified by:
addOK in class AbstractTupleBag
Parameters:
tuple - The tuple about to be added to the relation.
Returns:
true if it is OK to add the tuple to the given relation.