Package org.teiid.client
Class ResultsMessage
- java.lang.Object
-
- org.teiid.client.ResultsMessage
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class ResultsMessage extends Object implements Externalizable
Results Message, used by MMStatement to get the query results.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResultsMessage()
ResultsMessage(List<? extends List<?>> results, String[] columnNames, String[] dataTypes)
-
Method Summary
-
-
-
Method Detail
-
processResults
public void processResults() throws TeiidSQLException
- Throws:
TeiidSQLException
-
setResults
public void setResults(List<?>[] results)
-
getColumnNames
public String[] getColumnNames()
-
getDataTypes
public String[] getDataTypes()
-
getException
public TeiidException getException()
- Returns:
-
getFinalRow
public int getFinalRow()
- Returns:
-
getFirstRow
public int getFirstRow()
- Returns:
-
getLastRow
public int getLastRow()
- Returns:
-
getPlanDescription
public PlanNode getPlanDescription()
- Returns:
-
setException
public void setException(Throwable e)
-
setFinalRow
public void setFinalRow(int i)
- Parameters:
i
-
-
setFirstRow
public void setFirstRow(int i)
- Parameters:
i
-
-
setLastRow
public void setLastRow(int i)
- Parameters:
i
-
-
setPlanDescription
public void setPlanDescription(PlanNode object)
- Parameters:
object
-
-
getParameters
public List getParameters()
- Returns:
-
setParameters
public void setParameters(List list)
- Parameters:
list
-
-
setColumnNames
public void setColumnNames(String[] columnNames)
-
setDataTypes
public void setDataTypes(String[] dataTypes)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
serialize
public int serialize(boolean keepSerialization) throws IOException
Serialize the result data- Returns:
- the size of the data bytes
- Throws:
IOException
-
getAnnotations
public Collection<Annotation> getAnnotations()
- Returns:
-
getDebugLog
public String getDebugLog()
- Returns:
-
setAnnotations
public void setAnnotations(Collection<Annotation> collection)
- Parameters:
collection
-
-
setDebugLog
public void setDebugLog(String string)
- Parameters:
string
-
-
setUpdateResult
public void setUpdateResult(boolean isUpdateResult)
-
isUpdateResult
public boolean isUpdateResult()
-
getClientSerializationVersion
public byte getClientSerializationVersion()
-
setClientSerializationVersion
public void setClientSerializationVersion(byte clientSerializationVersion)
-
setUpdateCount
public void setUpdateCount(int updateCount)
-
getUpdateCount
public int getUpdateCount()
-
setDelayDeserialization
public void setDelayDeserialization(boolean delayDeserialization)
-
-