|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.common.buffer.impl.TupleSourceInfo
public class TupleSourceInfo
Describe a TupleSource and all important information about it.
Constructor Summary | |
---|---|
TupleSourceInfo(TupleSourceID tsID,
java.util.List schema,
java.lang.String[] types,
com.metamatrix.common.buffer.impl.TupleGroupInfo groupInfo,
BufferManager.TupleSourceType type)
Construct a TupleSourceInfo given information about it. |
Method Summary | |
---|---|
void |
addBatch(com.metamatrix.common.buffer.impl.ManagedBatch batch)
Add a managed batch to this tuple source |
com.metamatrix.common.buffer.impl.ManagedBatch |
getBatch(int beginRow)
Get a batch, specified by beginRow |
java.util.Iterator |
getBatchIterator()
Get iterator directly on the batches contained by this tuple source. |
com.metamatrix.common.buffer.impl.TupleGroupInfo |
getGroupInfo()
Get group this tuple source is in. |
int |
getRowCount()
Get current row count |
BufferManager.TupleSourceStatus |
getStatus()
Get status of this tuple source, as defined in BufferManager constants |
java.util.List |
getTupleSchema()
Get the tuple schema describing a tuple source |
TupleSourceID |
getTupleSourceID()
Get the tuple source identifier |
BufferManager.TupleSourceType |
getType()
Get type of this tuple source |
java.lang.String[] |
getTypes()
|
boolean |
isRemoved()
Check whether this tuple source has been removed. |
boolean |
lobsInSource()
|
void |
removeBatch(int beginRow)
Remove a managed batch for this tuple source, indexed by beginRow |
void |
setRemoved()
Set a flag that this tuple source has been removed |
void |
setRowCount(int rows)
Set the current row count |
void |
setStatus(BufferManager.TupleSourceStatus status)
Set status of this tuple source |
java.lang.String |
toString()
Get string representation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TupleSourceInfo(TupleSourceID tsID, java.util.List schema, java.lang.String[] types, com.metamatrix.common.buffer.impl.TupleGroupInfo groupInfo, BufferManager.TupleSourceType type)
tsID
- Identifierschema
- Schema describing tuple sourcegroupInfo
- The tuple gorup to which this tuple source belongstype
- Type of tuple source, as defined in BufferManager constantsMethod Detail |
---|
public TupleSourceID getTupleSourceID()
public java.util.List getTupleSchema()
public com.metamatrix.common.buffer.impl.TupleGroupInfo getGroupInfo()
public int getRowCount()
public void setRowCount(int rows)
rows
- New row countpublic BufferManager.TupleSourceStatus getStatus()
public void setStatus(BufferManager.TupleSourceStatus status)
status
- New statuspublic BufferManager.TupleSourceType getType()
public boolean isRemoved()
public void setRemoved()
public void addBatch(com.metamatrix.common.buffer.impl.ManagedBatch batch)
batch
- Managed batch for this tuple sourcepublic void removeBatch(int beginRow)
beginRow
- First row of batch to removepublic com.metamatrix.common.buffer.impl.ManagedBatch getBatch(int beginRow)
beginRow
- First row of batch to retrieve
public boolean lobsInSource()
public java.util.Iterator getBatchIterator()
public java.lang.String[] getTypes()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |