private void registerIteratorRequest() throws TeiidComponentException, TeiidProcessingException { Insert insert = new Insert(intoGroup, intoElements, null); insert.setSourceHint(sourceHint); insert.setUpsert(upsert); buffer.close(); insert.setTupleSource(buffer.createIndexedTupleSource(true)); // Register insert command against source registerRequest(insert); //remove the old buffer when the insert is complete last = buffer; buffer = null; }
private void registerIteratorRequest() throws TeiidComponentException, TeiidProcessingException { Insert insert = new Insert(intoGroup, intoElements, null); insert.setSourceHint(sourceHint); insert.setUpsert(upsert); buffer.close(); insert.setTupleSource(buffer.createIndexedTupleSource(true)); // Register insert command against source registerRequest(insert); //remove the old buffer when the insert is complete last = buffer; buffer = null; }
private void registerIteratorRequest() throws TeiidComponentException, TeiidProcessingException { Insert insert = new Insert(intoGroup, intoElements, null); insert.setSourceHint(sourceHint); insert.setUpsert(upsert); buffer.close(); insert.setTupleSource(buffer.createIndexedTupleSource(true)); // Register insert command against source registerRequest(insert); //remove the old buffer when the insert is complete last = buffer; buffer = null; }
insert.setTupleSource(this.tupleSource); TupleSource result = this.dataManager.registerRequest(this.internalProcessor.getContext(), insert, TempMetadataAdapter.TEMP_MODEL.getName(), new RegisterRequestParameter()); result.nextTuple();