@Override public void open() throws TeiidComponentException, TeiidProcessingException { super.open(); if (getParent() instanceof LimitNode) { LimitNode parent = (LimitNode) getParent(); if (parent.getLimit() > 0) { rowLimit = parent.getLimit() + parent.getOffset(); } } streaming = this.table.getXQueryExpression().isStreaming(); }
@Override public synchronized void closeDirect() { super.closeDirect(); if (this.buffer != null) { if (!usingOutput) { this.buffer.remove(); } this.buffer = null; } reset(); }
@Override public synchronized void reset() { super.reset(); if (this.result != null) { result.close(); result = null; } item = null; rowCount = 0; outputRow = 1; usingOutput = false; this.buffer = null; this.state = State.BUILDING; this.asynchException = null; this.rowLimit = -1; }