Exemplo n.º 1
0
 @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();
 }
Exemplo n.º 2
0
 @Override
 public synchronized void closeDirect() {
   super.closeDirect();
   if (this.buffer != null) {
     if (!usingOutput) {
       this.buffer.remove();
     }
     this.buffer = null;
   }
   reset();
 }
Exemplo n.º 3
0
 @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;
 }