|
||||||||||
| 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<? extends Expression> 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 |
getManagedRowCount()
Returns the total number of rows contained in managed batches |
int |
getRowCount()
Returns the last row number |
java.util.List<? extends Expression> |
getSchema()
|
static java.lang.String[] |
getTypeNames(java.util.List<? extends Expression> expressions)
Gets the data type names for each of the input expressions, in order. |
java.lang.String[] |
getTypes()
|
boolean |
isFinal()
|
boolean |
isForwardOnly()
|
boolean |
isLobs()
|
boolean |
isPrefersMemory()
|
boolean |
isRemoved()
|
void |
persistLobs()
|
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 |
setId(java.lang.String uuid)
|
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<? extends Expression> schema,
int[] lobIndexes,
int batchSize)
| Method Detail |
|---|
public static java.lang.String[] getTypeNames(java.util.List<? extends Expression> expressions)
expressions - List of Expressions
public java.lang.String getId()
public void setId(java.lang.String uuid)
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 persistLobs()
throws TeiidComponentException
TeiidComponentException
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 getManagedRowCount()
public int getRowCount()
public boolean isFinal()
public void setFinal(boolean isFinal)
public java.util.List<? extends Expression> 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()
public java.lang.String[] getTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||