com.metamatrix.query.processor.relational
Class TupleCollector

java.lang.Object
  extended by com.metamatrix.query.processor.relational.TupleCollector

public class TupleCollector
extends java.lang.Object


Constructor Summary
TupleCollector(BufferManager bm)
           
TupleCollector(TupleSourceID tsid, BufferManager bm)
           
 
Method Summary
 void addTuple(java.util.List<?> tuple)
           
 void close()
           
 java.util.ArrayList<java.util.List<?>> getBatch()
           
 TupleSourceID getTupleSourceID()
           
 boolean isEmpty()
           
 void saveBatch()
           
 void setBatchSize(int batchSize)
           
 void setTupleSourceID(TupleSourceID tsid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleCollector

public TupleCollector(TupleSourceID tsid,
                      BufferManager bm)
               throws TupleSourceNotFoundException,
                      MetaMatrixComponentException
Throws:
TupleSourceNotFoundException
MetaMatrixComponentException

TupleCollector

public TupleCollector(BufferManager bm)
Method Detail

setBatchSize

public void setBatchSize(int batchSize)

setTupleSourceID

public void setTupleSourceID(TupleSourceID tsid)

isEmpty

public boolean isEmpty()

getTupleSourceID

public TupleSourceID getTupleSourceID()

getBatch

public java.util.ArrayList<java.util.List<?>> getBatch()

addTuple

public void addTuple(java.util.List<?> tuple)
              throws TupleSourceNotFoundException,
                     MetaMatrixComponentException
Throws:
TupleSourceNotFoundException
MetaMatrixComponentException

saveBatch

public void saveBatch()
               throws TupleSourceNotFoundException,
                      MetaMatrixComponentException
Throws:
TupleSourceNotFoundException
MetaMatrixComponentException

close

public void close()
           throws TupleSourceNotFoundException,
                  MetaMatrixComponentException
Throws:
TupleSourceNotFoundException
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.