|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.common.buffer.TupleBuffer
public class TupleBuffer
| Constructor Summary | |
|---|---|
TupleBuffer(BatchManager manager,
java.lang.String id,
java.util.List<?> schema,
int[] lobIndexes,
int batchSize)
|
|
| Method Summary | |
|---|---|
void |
addTuple(java.util.List<?> tuple)
|
void |
addTupleBatch(TupleBatch batch,
boolean save)
Adds the given batch preserving row offsets. |
void |
close()
|
IndexedTupleSource |
createIndexedTupleSource()
|
IndexedTupleSource |
createIndexedTupleSource(boolean singleUse)
Create a new iterator for this buffer |
TupleBatch |
getBatch(int row)
Get the batch containing the given row. |
int |
getBatchSize()
|
java.lang.String |
getId()
|
Streamable<?> |
getLobReference(java.lang.String id)
|
int |
getRowCount()
|
java.util.List<?> |
getSchema()
|
static java.lang.String[] |
getTypeNames(java.util.List expressions)
Gets the data type names for each of the input expressions, in order. |
boolean |
isFinal()
|
boolean |
isForwardOnly()
|
boolean |
isLobs()
|
boolean |
isPrefersMemory()
|
boolean |
isRemoved()
|
void |
purge()
|
void |
remove()
|
void |
saveBatch()
Force the persistence of any rows held in memory. |
void |
setBatchSize(int batchSize)
|
void |
setFinal(boolean isFinal)
|
void |
setForwardOnly(boolean forwardOnly)
|
void |
setPrefersMemory(boolean prefersMemory)
|
void |
setRowCount(int rowCount)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TupleBuffer(BatchManager manager,
java.lang.String id,
java.util.List<?> schema,
int[] lobIndexes,
int batchSize)
| Method Detail |
|---|
public static java.lang.String[] getTypeNames(java.util.List expressions)
expressions - List of Expressions
public java.lang.String getId()
public boolean isLobs()
public void addTuple(java.util.List<?> tuple)
throws TeiidComponentException
TeiidComponentException
public void addTupleBatch(TupleBatch batch,
boolean save)
throws TeiidComponentException
batch -
TeiidComponentException
public void setRowCount(int rowCount)
throws TeiidComponentException
TeiidComponentExceptionpublic void purge()
public void saveBatch()
throws TeiidComponentException
TeiidComponentException
public void close()
throws TeiidComponentException
TeiidComponentException
public TupleBatch getBatch(int row)
throws TeiidComponentException
row -
TeiidComponentExceptionpublic void remove()
public int getRowCount()
public boolean isFinal()
public void setFinal(boolean isFinal)
public java.util.List<?> getSchema()
public int getBatchSize()
public void setBatchSize(int batchSize)
public Streamable<?> getLobReference(java.lang.String id)
throws TeiidComponentException
TeiidComponentExceptionpublic void setForwardOnly(boolean forwardOnly)
public IndexedTupleSource createIndexedTupleSource()
public IndexedTupleSource createIndexedTupleSource(boolean singleUse)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isRemoved()
public boolean isForwardOnly()
public void setPrefersMemory(boolean prefersMemory)
public boolean isPrefersMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||