java.lang.Object
org.apache.jena.tdb1.store.tupletable.TupleIndexWrapper
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,TupleIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanInsert a tuple - return true if it was really added, false if it was a duplicateall()return an iterator of everythingvoidclear()Clear the indexvoidclose()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.Get a convenient display string based on the details of the column map - do not rely on the formatgetName()Get a convenient display string for the index - do not rely on the formatintLength of tuple supportedbooleanisEmpty()Answer whether empty or notlongsize()Size of index (number of slots).voidsync()intWeight a pattern - specified in normal order (not index order).
-
Constructor Details
-
TupleIndexWrapper
-
-
Method Details
-
add
Description copied from interface:TupleIndexInsert a tuple - return true if it was really added, false if it was a duplicate- Specified by:
addin interfaceTupleIndex
-
delete
Description copied from interface:TupleIndexDelete a tuple - return true if it was deleted, false if it didn't exist- Specified by:
deletein interfaceTupleIndex
-
find
public Iterator<org.apache.jena.atlas.lib.tuple.Tuple<NodeId>> find(org.apache.jena.atlas.lib.tuple.Tuple<NodeId> pattern) Description copied from interface:TupleIndexFind 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
-
all
Description copied from interface:TupleIndexreturn an iterator of everything- Specified by:
allin interfaceTupleIndex
-
getTupleLength
public int getTupleLength()Description copied from interface:TupleIndexLength of tuple supported- Specified by:
getTupleLengthin 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
-
getColumnMap
- Specified by:
getColumnMapin interfaceTupleIndex
-
getName
Description copied from interface:TupleIndexGet a convenient display string for the index - do not rely on the format- Specified by:
getNamein 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
-
size
public long size()Description copied from interface:TupleIndexSize of index (number of slots). May be an estimate and not exact. -1 for unknown.- Specified by:
sizein interfaceTupleIndex
-
isEmpty
public boolean isEmpty()Description copied from interface:TupleIndexAnswer whether empty or not- Specified by:
isEmptyin interfaceTupleIndex
-
clear
public void clear()Description copied from interface:TupleIndexClear the index- Specified by:
clearin interfaceTupleIndex
-
sync
public void sync()- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync
-
close
public void close()- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-