@Override protected void closeSubIterator() { if ( currentStage != null ) currentStage.close() ; }
@Override protected void closeSubIterator() { if ( currentStage != null ) currentStage.close() ; }
@Override protected void closeSubIterator() { if ( output != null ) output.close() ; output = null ; }
/** close an iterator */ protected static void performClose(QueryIterator iter) { if ( iter == null ) return ; iter.close() ; }
@Override protected void closeIterator() { if ( iterator != null ) { iterator.close() ; iterator = null ; } }
@Override protected void closeSubIterator() { if ( output != null ) output.close() ; output = null ; }
protected QueryIterator execute(OpNull opNull, QueryIterator input) { // Loose the input. input.close() ; return new QueryIterNullIterator(execCxt) ; }
protected QueryIterator execute(OpNull opNull, QueryIterator input) { // Loose the input. input.close() ; return QueryIterNullIterator.create(execCxt) ; }
@Override protected void closeSubIterator() { init() ; // Ensure initialized even if immediately closed. procIter.close(); }
@Override protected void closeSubIterator() { init() ; // Ensure initialized even if immediately closed. procIter.close(); }
public void close() { if ( queryIterator != null ) queryIterator.close() ; if ( plan != null ) plan.close() ; cancelPingback() ; }
public LinearIndex(Set<Var> commonVars, QueryIterator data, Set<HashIndexTable.Key> loadedData, Map<Var,Integer> mappings) { this.commonVars = commonVars ; for ( HashIndexTable.Key key: loadedData ) table.add(toBinding(key, mappings)) ; while ( data.hasNext() ) table.add(data.next()) ; data.close() ; }
public static Table create(QueryIterator queryIterator) { if ( queryIterator instanceof QueryIterRoot ) { queryIterator.close(); return createUnit() ; } return new TableN(queryIterator) ; }
public QueryIteratorCopy(QueryIterator qIter) { for ( ; qIter.hasNext() ; ) elements.add(qIter.nextBinding()) ; qIter.close() ; iterator = copy() ; original = qIter ; }
public void materialize(QueryIterator qIter) { while ( qIter.hasNext() ) { Binding binding = qIter.nextBinding() ; addBinding(binding) ; } qIter.close() ; }
public QueryIterJoinBase(QueryIterator left, QueryIterator right, ExprList exprs, ExecutionContext execCxt) { super(left, right, execCxt) ; tableRight = TableFactory.create(getRight()) ; getRight().close(); this.exprs = exprs ; }
public QueryIterJoinBase(QueryIterator left, QueryIterator right, ExprList exprs, ExecutionContext execCxt) { super(left, right, execCxt) ; tableRight = TableFactory.create(getRight()) ; getRight().close(); this.exprs = exprs ; }
@Override public ResultSet toResultSet() { QueryIterator qIter = iterator(null) ; ResultSet rs = new ResultSetStream(getVarNames(), null, qIter) ; rs = ResultSetFactory.makeRewindable(rs) ; qIter.close() ; return rs ; }
public static void outputPlain(IndentedWriter out, Table table, SerializationContext sCxt) { QueryIterator qIter = table.iterator(null) ; for ( ; qIter.hasNext(); ) { Binding b = qIter.nextBinding() ; output(out, b, sCxt) ; out.println() ; } qIter.close() ; }
public static void outputPlain(IndentedWriter out, Table table, SerializationContext sCxt) { QueryIterator qIter = table.iterator(null) ; for ( ; qIter.hasNext(); ) { Binding b = qIter.nextBinding() ; output(out, b, sCxt) ; out.println() ; } qIter.close() ; }