|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.storage.simple.SimpleRelation
public class SimpleRelation
A simple, in-memory, array-based relation.
| Method Summary | |
|---|---|
boolean |
add(ITuple tuple)
Add a tuple to the relation. |
boolean |
addAll(IRelation relation)
Add all tuples in relation 'relation' to this relation. |
boolean |
contains(ITuple tuple)
|
ITuple |
get(int index)
Get a tuple at a specific index. |
int |
size()
Get the current number of tuples in this relation. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean add(ITuple tuple)
IRelation
add in interface IRelationtuple - The (unique) tuple to add.
public boolean addAll(IRelation relation)
IRelation
addAll in interface IRelationrelation - The relation containing tuples to add.
public ITuple get(int index)
IRelation
get in interface IRelationindex - The index of the tuple in the relation, 0 <= index < size().
public int size()
IRelation
size in interface IRelationpublic boolean contains(ITuple tuple)
contains in interface IRelationpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||