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
-
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 tuplesboolean
Might there be duplicates?long
size()
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:BaseRelation
returns an filteres enumerator for all tuples- Specified by:
elements
in interfaceBaseRelation
- Overrides:
elements
in classCrossProductBaseRelation
- Returns:
- returns enumerator for tuples
- Throws:
IOException
EDBException
-
elements
Description copied from interface:BaseRelation
returns an enumerator for all tuples- Specified by:
elements
in interfaceBaseRelation
- Overrides:
elements
in classCrossProductBaseRelation
- Returns:
- returns enumerator for tuples
- Throws:
IOException
EDBException
-
size
Description copied from interface:BaseRelation
returns the number of tuples in relation- Specified by:
size
in interfaceBaseRelation
- Overrides:
size
in classCrossProductBaseRelation
- Returns:
- number of tuples in relation
- Throws:
EDBException
IOException
-
mayContainDuplicates
public boolean mayContainDuplicates()Description copied from interface:BaseRelation
Might there be duplicates?- Specified by:
mayContainDuplicates
in interfaceBaseRelation
- Overrides:
mayContainDuplicates
in classCrossProductBaseRelation
- Returns:
- , might there be duplicates in relation
-
createIndex
Description copied from interface:BaseRelation
Get or create a simple (not sorted index) by the argument positions in indexed positions.- Specified by:
createIndex
in interfaceBaseRelation
- Overrides:
createIndex
in classCrossProductBaseRelation
- Parameters:
indexedPositions
- , positions which are indexed- Returns:
- index
- Throws:
IOException
EDBException
-
createSortedIndex
Description copied from interface:BaseRelation
ret or create a sorted index given by the argument positions in indexed positions- Specified by:
createSortedIndex
in interfaceBaseRelation
- Overrides:
createSortedIndex
in classCrossProductBaseRelation
- Returns:
- Throws:
IOException
EDBException
-