Package org.teiid.common.buffer

Examples of org.teiid.common.buffer.TupleSource.closeSource()


      List<?> row = ts.nextTuple();
      Object result = null;
      if (row != null) {
        result = row.get(0);
      }
      ts.closeSource();
      return result;
    }

  @Override
  public EventDistributor getEventDistributor() {
View Full Code Here


      tb.close();
      return tb.createIndexedTupleSource(true);
    } finally {
      if (!usingQueryTupleSource) {
        //ensure the buffers get released
        ts.closeSource();
      }
    }
  }

  /**
 
View Full Code Here

            System.out.println("\nResults:\n" + tsID.getSchema()); //$NON-NLS-1$
            TupleSource ts2 = tsID.createIndexedTupleSource();
            for(int j=0; j<count; j++) {
                System.out.println("" + j + ": " + ts2.nextTuple());   //$NON-NLS-1$ //$NON-NLS-2$
            }   
            ts2.closeSource();
        }
       
        // Compare actual to expected row count
        assertEquals("Did not get expected row count: ", expectedResults.length, count); //$NON-NLS-1$
    
View Full Code Here

                        return pullBatch();
                      }
              }
             
                  //end of source
                    tupleSource.closeSource();
                    tupleSources.remove(i--);
                if (reserved > 0) {
                      reserved -= schemaSize;
                      getBufferManager().releaseBuffers(schemaSize);
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.