|
||||||||||
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,
String id,
List<? extends Expression> schema,
LobManager lobManager,
int batchSize)
|
Method Summary | |
---|---|
void |
addTuple(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()
|
String |
getId()
|
int |
getLobCount()
|
Streamable<?> |
getLobReference(String id)
|
int |
getManagedRowCount()
Returns the total number of rows contained in managed batches |
int |
getRowCount()
Returns the last row number |
List<? extends Expression> |
getSchema()
|
static String[] |
getTypeNames(List<? extends Expression> expressions)
Gets the data type names for each of the input expressions, in order. |
String[] |
getTypes()
|
boolean |
isFinal()
|
boolean |
isForwardOnly()
|
boolean |
isLobs()
|
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(String uuid)
|
void |
setInlineLobs(boolean inline)
|
void |
setPrefersMemory(boolean prefersMemory)
|
void |
setRowCount(int rowCount)
|
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, String id, List<? extends Expression> schema, LobManager lobManager, int batchSize)
Method Detail |
---|
public static String[] getTypeNames(List<? extends Expression> expressions)
expressions
- List of Expressions
public void setInlineLobs(boolean inline)
public String getId()
public void setId(String uuid)
public boolean isLobs()
public void addTuple(List<?> tuple) throws TeiidComponentException
TeiidComponentException
public void addTupleBatch(TupleBatch batch, boolean save) throws TeiidComponentException
batch
-
TeiidComponentException
public void setRowCount(int rowCount) throws TeiidComponentException
TeiidComponentException
public 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
-
TeiidComponentException
- TODO: a method to get the raw batchpublic void remove()
public int getManagedRowCount()
public int getRowCount()
public boolean isFinal()
public void setFinal(boolean isFinal)
public List<? extends Expression> getSchema()
public int getBatchSize()
public void setBatchSize(int batchSize)
public Streamable<?> getLobReference(String id) throws TeiidComponentException
TeiidComponentException
public void setForwardOnly(boolean forwardOnly)
public IndexedTupleSource createIndexedTupleSource()
public IndexedTupleSource createIndexedTupleSource(boolean singleUse)
public String toString()
toString
in class Object
public boolean isRemoved()
public boolean isForwardOnly()
public void setPrefersMemory(boolean prefersMemory)
public String[] getTypes()
public int getLobCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |