|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRelation
The interface to all relation classes. The order of the tuples is given by the order of insertion. The access via index position is intended to allow for smart indexing, caching etc when using relation classes that support large amounts of data.
| 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. |
| Method Detail |
|---|
boolean add(ITuple tuple)
tuple - The (unique) tuple to add.
boolean addAll(IRelation relation)
relation - The relation containing tuples to add.
int size()
ITuple get(int index)
index - The index of the tuple in the relation, 0 <= index < size().
boolean contains(ITuple tuple)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||