Class OneToOneBaseRelation
java.lang.Object
com.semedy.reasoner.reasoning.processes.CrossProductBaseRelation
com.semedy.reasoner.reasoning.processes.OneToOneBaseRelation
- All Implemented Interfaces:
BaseRelation
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateIndex(int[] indexedPositions) Get or create a simple (not sorted index) by the argument positions in indexed positions.createSortedIndex(int[] indexedPositions) ret or create a sorted index given by the argument positions in indexed positionselements()returns an enumerator for all tupleselements(long[] filter) returns an filteres enumerator for all tuplesbooleanMight there be duplicates?longsize()returns the number of tuples in relationMethods inherited from class com.semedy.reasoner.reasoning.processes.CrossProductBaseRelation
addSubRelation, addTuple, addTuple, addTuple, clear, close, containsTuple, containsTuple, containsTuple, flush, getArity, getCacheInfo, getDirectEncodedType, getIdentifier, getIndex, getInputBuffer, getInternalArity, getMaxValue, getMinValue, getNumberOfDifferentValues, getRelationAtArgument, getRelations, getSortedIndex, hasDuplicates, hasIndices, isDirectEncoded, isEmpty, isOverwrittenByTuple, isPersistent, isTemporary, lastModificationTime, overwriteTuple, overwriteTuple, readTupleFile, registerListener, removeTuple, removeTuple, removeTuple, select, sizeInBytes, toString, union, writeBinary
-
Constructor Details
-
OneToOneBaseRelation
- Parameters:
relations-
-
-
Method Details
-
elements
Description copied from interface:BaseRelationreturns an filteres enumerator for all tuples- Specified by:
elementsin interfaceBaseRelation- Overrides:
elementsin classCrossProductBaseRelation- Returns:
- returns enumerator for tuples
- Throws:
IOExceptionEDBException
-
elements
Description copied from interface:BaseRelationreturns an enumerator for all tuples- Specified by:
elementsin interfaceBaseRelation- Overrides:
elementsin classCrossProductBaseRelation- Returns:
- returns enumerator for tuples
- Throws:
IOExceptionEDBException
-
size
Description copied from interface:BaseRelationreturns the number of tuples in relation- Specified by:
sizein interfaceBaseRelation- Overrides:
sizein classCrossProductBaseRelation- Returns:
- number of tuples in relation
- Throws:
EDBExceptionIOException
-
mayContainDuplicates
public boolean mayContainDuplicates()Description copied from interface:BaseRelationMight there be duplicates?- Specified by:
mayContainDuplicatesin interfaceBaseRelation- Overrides:
mayContainDuplicatesin classCrossProductBaseRelation- Returns:
- , might there be duplicates in relation
-
createIndex
Description copied from interface:BaseRelationGet or create a simple (not sorted index) by the argument positions in indexed positions.- Specified by:
createIndexin interfaceBaseRelation- Overrides:
createIndexin classCrossProductBaseRelation- Parameters:
indexedPositions- , positions which are indexed- Returns:
- index
- Throws:
IOExceptionEDBException
-
createSortedIndex
Description copied from interface:BaseRelationret or create a sorted index given by the argument positions in indexed positions- Specified by:
createSortedIndexin interfaceBaseRelation- Overrides:
createSortedIndexin classCrossProductBaseRelation- Returns:
- Throws:
IOExceptionEDBException
-