| Modifier | Constructor and Description |
|---|---|
protected |
ResultsWidget(ds.funnel.data.format.FormatReader mFormat)
Reconstructs the ResultsWidget from a set of bytes
|
protected |
ResultsWidget(String instanceIdentifier,
String resultIdentifier,
boolean completeResult,
boolean processingComplete) |
| Modifier and Type | Method and Description |
|---|---|
SequencingInfo |
createSequenceInfo()
Create the sequencing information to be associated with this result.
|
byte[] |
getBytes()
Deprecated.
|
String |
getInstanceIdentifier()
Retrieve the instance identifier of the application instance that has
generated the result(s).
|
String |
getRespondTo()
Retrieve the respondTo field for the Results
|
String |
getResultIdentifier()
Gets the identifier for this slice of the results.
|
byte[] |
getResultPayload()
Retrieve the payload associated with this result.
|
int |
getResultType()
Get the type of the result encapsulated within the payload.
|
SequencingInfo |
getSequencingInfo()
Retrieves the sequencing information associated with this result.
|
long |
getTimestamp()
Retrieve the timestamp for this result.
|
boolean |
hasRespondTo()
Check to see if a respondTo field has been included as part of this
result.
|
boolean |
hasSequencingInfo()
Check to see if a Sequencing Info has been associated with this result.
|
boolean |
isCompleteResult()
Check to see if this results encapsulates the complete result from
processing.
|
boolean |
isMutable()
Checks to see if this data structure is mutable.
|
boolean |
isPartialResult()
Check to see if this is a partial result, within a stream of results that
constitute the final result.
|
boolean |
isProcessingComplete()
Check to see if the instance has completed processing of its input
dataset.
|
void |
marshall(ds.funnel.data.format.FormatWriter mFormat) |
protected void |
setImmutable() |
void |
setRespondTo(String respondTo)
Set the respondTo field for the Results
|
void |
setResultPayload(byte[] resultsPayload)
Sets the payload for the Results.
|
void |
setResultType(int resultType)
Set the type of the result encapsulated within the payload.
|
public static final String MODULE
protected ResultsWidget(String instanceIdentifier, String resultIdentifier, boolean completeResult, boolean processingComplete)
protected ResultsWidget(ds.funnel.data.format.FormatReader mFormat)
throws ds.funnel.data.format.FormatException
marshalledBytes - IOExceptionMarshallingExceptionds.funnel.data.format.FormatExceptionpublic SequencingInfo createSequenceInfo()
ResultscreateSequenceInfo in interface Resultspublic String getRespondTo()
ResultsgetRespondTo in interface Resultspublic void setRespondTo(String respondTo)
ResultssetRespondTo in interface ResultsrespondTo - The respondTo fieldpublic String getResultIdentifier()
ResultsgetResultIdentifier in interface Resultspublic int getResultType()
ResultsgetResultType in interface Resultspublic void setResultType(int resultType)
ResultssetResultType in interface Resultspublic SequencingInfo getSequencingInfo()
ResultsgetSequencingInfo in interface Resultspublic long getTimestamp()
ResultsgetTimestamp in interface Resultspublic boolean hasRespondTo()
ResultshasRespondTo in interface Resultstrue if the result has a respondTo field;
false otherwise.public boolean hasSequencingInfo()
ResultshasSequencingInfo in interface Resultstrue if the result has a sequencing info associated
with it; false otherwise.public String getInstanceIdentifier()
ResultsgetInstanceIdentifier in interface Resultspublic boolean isCompleteResult()
ResultsisCompleteResult in interface Resultstrue if the result is a complete result;
false otherwise.public boolean isMutable()
Resultsprotected void setImmutable()
public boolean isPartialResult()
ResultsisPartialResult in interface Resultstrue if the result is a partial one;
false otherwise.public boolean isProcessingComplete()
ResultsisProcessingComplete in interface Resultstrue if the processing is complete;
false otherwise.public byte[] getResultPayload()
ResultsResultPayload contains utility methods to marshall and
un-marshall different types of payloads such as int[], long[], float[]
etc. The ResultPayload class also contains constants for
different payload types, which can be used as the argument to
setResultType() method of this interface.getResultPayload in interface Resultspublic void setResultPayload(byte[] resultsPayload)
ResultssetResultPayload in interface ResultsresultsPayload - The payload@Deprecated public byte[] getBytes() throws IOException
ResultsgetBytes in interface ResultsIOException - If there are problems in the marshalling process.public void marshall(ds.funnel.data.format.FormatWriter mFormat)
throws ds.funnel.data.format.FormatException
marshall in interface ds.funnel.data.format.FormatMarshallerds.funnel.data.format.FormatExceptionCopyright © 2015. All rights reserved.