@Override public TupleBuffer getBuffer(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { while (true) { long wait = DEFAULT_WAIT; try { init(); return this.processPlan.getBuffer(maxRows); } catch (BlockedException e) { if (!this.context.isNonBlocking()) { throw e; } if (e == BlockedException.BLOCKED_ON_MEMORY_EXCEPTION) { continue; //TODO: pass the commandcontext into sortutility } } catch (TeiidComponentException e) { closeProcessing(); throw e; } catch (TeiidProcessingException e) { closeProcessing(); throw e; } try { Thread.sleep(wait); } catch (InterruptedException err) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30163, err); } } }
@Override public TupleBuffer getBuffer(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { while (true) { long wait = DEFAULT_WAIT; try { init(); return this.processPlan.getBuffer(maxRows); } catch (BlockedException e) { if (!this.context.isNonBlocking()) { throw e; } if (e == BlockedException.BLOCKED_ON_MEMORY_EXCEPTION) { continue; //TODO: pass the commandcontext into sortutility } } catch (TeiidComponentException e) { closeProcessing(); throw e; } catch (TeiidProcessingException e) { closeProcessing(); throw e; } try { Thread.sleep(wait); } catch (InterruptedException err) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30163, err); } } }
@Override public TupleBuffer getBuffer(int maxRows) throws BlockedException, TeiidComponentException, TeiidProcessingException { while (true) { long wait = DEFAULT_WAIT; try { init(); return this.processPlan.getBuffer(maxRows); } catch (BlockedException e) { if (!this.context.isNonBlocking()) { throw e; } if (e == BlockedException.BLOCKED_ON_MEMORY_EXCEPTION) { continue; //TODO: pass the commandcontext into sortutility } } catch (TeiidComponentException e) { closeProcessing(); throw e; } catch (TeiidProcessingException e) { closeProcessing(); throw e; } try { Thread.sleep(wait); } catch (InterruptedException err) { throw new TeiidComponentException(QueryPlugin.Event.TEIID30163, err); } } }
init(); long currentTime = System.currentTimeMillis(); Assertion.assertTrue(!processorClosed);
init(); long currentTime = System.currentTimeMillis(); Assertion.assertTrue(!processorClosed);
init(); long currentTime = System.currentTimeMillis(); Assertion.assertTrue(!processorClosed);
this.tupleSource = new BatchIterator(internalProcessor); if (openOnly) { internalProcessor.init();