Class TupleEnumeratorCrossProduct
java.lang.Object
com.semedy.reasoner.reasoning.processes.TupleEnumeratorCrossProduct
- All Implemented Interfaces:
TupleEnumerator
,Closeable
,AutoCloseable
- Direct Known Subclasses:
TupleEnumeratorOneToOneJoin
-
Constructor Summary
ConstructorDescriptionTupleEnumeratorCrossProduct
(CrossProductBaseRelation crossProductBaseRelation) TupleEnumeratorCrossProduct
(CrossProductBaseRelation crossProductBaseRelation, TupleEnumerator[] enumerators) TupleEnumeratorCrossProduct
(CrossProductBaseRelation crossProductBaseRelation, TupleEnumerator enm1, int argumentPosition1, TupleEnumerator enm2, int argumentPosition2) -
Method Summary
Modifier and TypeMethodDescriptionclones the enumeratorvoid
close()
close the enumeratorget a buffer where the elements are insertedboolean
flag the end of the enumerationboolean
Are there more elements in enumeration?void
creates the next element in the buffervoid
void
setFilter
(long[] filter) set the filters.
-
Constructor Details
-
TupleEnumeratorCrossProduct
public TupleEnumeratorCrossProduct(CrossProductBaseRelation crossProductBaseRelation) throws IOException, EDBException - Throws:
IOException
EDBException
-
TupleEnumeratorCrossProduct
public TupleEnumeratorCrossProduct(CrossProductBaseRelation crossProductBaseRelation, TupleEnumerator[] enumerators) throws IOException, EDBException - Throws:
IOException
EDBException
-
TupleEnumeratorCrossProduct
public TupleEnumeratorCrossProduct() -
TupleEnumeratorCrossProduct
public TupleEnumeratorCrossProduct(CrossProductBaseRelation crossProductBaseRelation, TupleEnumerator enm1, int argumentPosition1, TupleEnumerator enm2, int argumentPosition2) throws IOException, EDBException - Throws:
IOException
EDBException
-
-
Method Details
-
hasMoreElements
Description copied from interface:TupleEnumerator
Are there more elements in enumeration?- Specified by:
hasMoreElements
in interfaceTupleEnumerator
- Throws:
IOException
EDBException
-
nextElement
Description copied from interface:TupleEnumerator
creates the next element in the buffer- Specified by:
nextElement
in interfaceTupleEnumerator
- Throws:
IOException
EDBException
-
nextElementIntern
- Throws:
IOException
EDBException
-
hasFinished
Description copied from interface:TupleEnumerator
flag the end of the enumeration- Specified by:
hasFinished
in interfaceTupleEnumerator
- Throws:
IOException
EDBException
-
getBuffer
Description copied from interface:TupleEnumerator
get a buffer where the elements are inserted- Specified by:
getBuffer
in interfaceTupleEnumerator
- Returns:
-
close
Description copied from interface:TupleEnumerator
close the enumerator- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceTupleEnumerator
- Throws:
IOException
-
setFilter
public void setFilter(long[] filter) set the filters. Is an optimization- Parameters:
filter
-
-
cloneEnumerator
Description copied from interface:TupleEnumerator
clones the enumerator- Specified by:
cloneEnumerator
in interfaceTupleEnumerator
- Throws:
IOException
-