Package org.teiid.query.processor.relational

Examples of org.teiid.query.processor.relational.FakeRelationalNode


@SuppressWarnings("nls")
public class TestBatchIterator {

  @Test public void testReset() throws Exception {
    BatchIterator bi = new BatchIterator(new FakeRelationalNode(1, new List[] {
      Arrays.asList(1),
      Arrays.asList(1),
      Arrays.asList(1)
    }, 1));
    BufferManager bm = BufferManagerFactory.getStandaloneBufferManager();
View Full Code Here


    bi.reset();
    bi.nextTuple();
  }
 
  @Test public void testReset1() throws Exception {
    BatchIterator bi = new BatchIterator(new FakeRelationalNode(1, new List[] {
      Arrays.asList(1),
      Arrays.asList(2),
      Arrays.asList(3)
    }, 2));
    BufferManager bm = BufferManagerFactory.getStandaloneBufferManager();
View Full Code Here

    assertEquals(2, bi.getCurrentIndex());
    assertEquals(2, bi.nextTuple().get(0));
  }
 
  @Test public void testReset2() throws Exception {
    BatchIterator bi = new BatchIterator(new FakeRelationalNode(1, new List[] {
      Arrays.asList(1),
      Arrays.asList(2),
    }, 2));
    BufferManager bm = BufferManagerFactory.getStandaloneBufferManager();
    TupleBuffer tb = bm.createTupleBuffer(Arrays.asList(new ElementSymbol("x")), "test", TupleSourceType.PROCESSOR);
View Full Code Here

TOP

Related Classes of org.teiid.query.processor.relational.FakeRelationalNode

Copyright © 2018 www.massapicom. 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.