java.lang.Object
org.apache.jena.sparql.algebra.table.TableBuilder
Builder for immutable instances of
Table
.
This builder is not thread safe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRowAndVars
(Binding row) addRows
(Collection<Binding> newRows) addRowsAndVars
(Collection<Binding> newRows) addRowsAndVars
(Iterator<Binding> newRows) addRowsAndVars
(Table table) Add the rows and variables of another table.addVars
(Collection<Var> vars) addVarsFromRow
(Binding row) Adds the variables of a binding but not the binding itself.build()
consumeRowsAndVars
(QueryIterator qIter) Similar toaddRowsAndVars(Iterator)
but also closes the given QueryIterator when done.reset()
Reset variables and rows.int
sizeRows()
int
sizeVars()
Returns an immutable snapshot of this builder's current rows.Returns an immutable snapshot of this builder's current variables.
-
Constructor Details
-
TableBuilder
public TableBuilder()
-
-
Method Details
-
snapshotVars
Returns an immutable snapshot of this builder's current variables. -
sizeVars
public int sizeVars() -
addVar
-
addVars
-
addVars
-
addVarsFromRow
Adds the variables of a binding but not the binding itself. -
snapshotRows
Returns an immutable snapshot of this builder's current rows. -
sizeRows
public int sizeRows() -
addRow
-
addRows
-
addRows
-
addRowAndVars
-
addRowsAndVars
-
addRowsAndVars
-
addRowsAndVars
Add the rows and variables of another table. -
consumeRowsAndVars
Similar toaddRowsAndVars(Iterator)
but also closes the given QueryIterator when done. -
resetVars
-
resetRows
-
reset
Reset variables and rows. -
build
-