Package org.aksw.jenax.arq.util.tuple
Interface TupleTableCore<T,X>
- Type Parameters:
T- The type of the tuples to hold
- All Superinterfaces:
TupleQuerySupport<T,X>
Base interface for tuples i.e. triples and quads.
Evolving.
Deliberately analogous to
TupleTable to enable potential
future consolidation- Author:
- Claus Stadler 11/09/2020
-
Method Summary
Modifier and TypeMethodDescriptionvoidstatic org.apache.jena.graph.NodeanyToNull(org.apache.jena.graph.Node n) voidclear()Clear all entries Optional operation.booleanvoiddefault ResultStreamer<T,X, org.apache.jena.atlas.lib.tuple.Tuple<X>> find(TupleQuery<X> tupleQuery) Method for running tuple queriesfindTuples(D domainTyple, org.aksw.commons.tuple.accessor.TupleAccessor<? super D, ? extends X> accessor) findTuples(List<X> pattern) The basic find method that yields all tuples whose components equal the corresponding non-null components in pattern.default intThe number of components / columnsstatic org.apache.jena.graph.NodenullToAny(org.apache.jena.graph.Node n) default longsize()The number of tuples in the table.
-
Method Details
-
clear
void clear()Clear all entries Optional operation. May fail withUnsupportedOperationExceptionfor e.g. views. -
add
-
delete
-
contains
-
findTuples
The basic find method that yields all tuples whose components equal the corresponding non-null components in pattern. Be aware that the contract for this method is that only null values in the pattern correspond to 'match any' Specifically, don't use Node.ANY here or it may result in an attempt to match tuples with this value exactly. On the tuple-level we don't know or care about such domain conventions.- Parameters:
tupleTypes-- Returns:
-
findTuples
-
findTuples
-
find
Description copied from interface:TupleQuerySupportMethod for running tuple queries- Specified by:
findin interfaceTupleQuerySupport<T,X> - Returns:
-
size
default long size()The number of tuples in the table. If not indexed then this value is used as the estimate of lookups Therefore the size should be cached- Returns:
-
getDimension
default int getDimension()The number of components / columns- Returns:
-
getTupleAccessor
-
nullToAny
static org.apache.jena.graph.Node nullToAny(org.apache.jena.graph.Node n) -
anyToNull
static org.apache.jena.graph.Node anyToNull(org.apache.jena.graph.Node n)
-