java.lang.Object
org.apache.jena.tdb1.store.tupletable.TupleIndexBase
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,TupleIndex
- Direct Known Subclasses:
TupleIndexRecord
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleanInsert a tuple - return true if it was really added, false if it was a duplicatefinal booleanDelete a tuple - return true if it was deleted, false if it didn't existFind all matching tuples - a slot of NodeId.NodeIdAny (or null) means match any.final ColumnMapfinal StringGet a convenient display string based on the details of the column map - do not rely on the formatfinal StringgetName()Get a convenient display string for the index - do not rely on the formatfinal intLength of tuple supportedtoString()final intWeight a pattern - specified in normal order (not index order).Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.jena.atlas.lib.Closeable
closeMethods inherited from interface org.apache.jena.atlas.lib.Sync
syncMethods inherited from interface org.apache.jena.tdb1.store.tupletable.TupleIndex
all, clear, isEmpty, size
-
Method Details
-
add
Insert a tuple - return true if it was really added, false if it was a duplicate- Specified by:
addin interfaceTupleIndex
-
delete
Delete a tuple - return true if it was deleted, false if it didn't exist- Specified by:
deletein interfaceTupleIndex
-
find
public final Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(org.apache.jena.atlas.lib.tuple.Tuple<NodeId> pattern) Find all matching tuples - a slot of NodeId.NodeIdAny (or null) means match any. Input pattern in natural order, not index order.- Specified by:
findin interfaceTupleIndex
-
weight
Description copied from interface:TupleIndexWeight a pattern - specified in normal order (not index order). Large numbers means better match.- Specified by:
weightin interfaceTupleIndex
-
getMappingStr
Description copied from interface:TupleIndexGet a convenient display string based on the details of the column map - do not rely on the format- Specified by:
getMappingStrin interfaceTupleIndex
-
getName
Description copied from interface:TupleIndexGet a convenient display string for the index - do not rely on the format- Specified by:
getNamein interfaceTupleIndex
-
getTupleLength
public final int getTupleLength()Description copied from interface:TupleIndexLength of tuple supported- Specified by:
getTupleLengthin interfaceTupleIndex
-
getColumnMap
- Specified by:
getColumnMapin interfaceTupleIndex
-
toString
-