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
- IOException
MarshallingException
ds.funnel.data.format.FormatException
public SequencingInfo createSequenceInfo()
Results
createSequenceInfo
in interface Results
public String getRespondTo()
Results
getRespondTo
in interface Results
public void setRespondTo(String respondTo)
Results
setRespondTo
in interface Results
respondTo
- The respondTo fieldpublic String getResultIdentifier()
Results
getResultIdentifier
in interface Results
public int getResultType()
Results
getResultType
in interface Results
public void setResultType(int resultType)
Results
setResultType
in interface Results
public SequencingInfo getSequencingInfo()
Results
getSequencingInfo
in interface Results
public long getTimestamp()
Results
getTimestamp
in interface Results
public boolean hasRespondTo()
Results
hasRespondTo
in interface Results
true
if the result has a respondTo field;
false
otherwise.public boolean hasSequencingInfo()
Results
hasSequencingInfo
in interface Results
true
if the result has a sequencing info associated
with it; false
otherwise.public String getInstanceIdentifier()
Results
getInstanceIdentifier
in interface Results
public boolean isCompleteResult()
Results
isCompleteResult
in interface Results
true
if the result is a complete result;
false
otherwise.public boolean isMutable()
Results
protected void setImmutable()
public boolean isPartialResult()
Results
isPartialResult
in interface Results
true
if the result is a partial one;
false
otherwise.public boolean isProcessingComplete()
Results
isProcessingComplete
in interface Results
true
if the processing is complete;
false
otherwise.public byte[] getResultPayload()
Results
ResultPayload
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 Results
public void setResultPayload(byte[] resultsPayload)
Results
setResultPayload
in interface Results
resultsPayload
- The payload@Deprecated public byte[] getBytes() throws IOException
Results
getBytes
in interface Results
IOException
- 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.FormatMarshaller
ds.funnel.data.format.FormatException
Copyright © 2015. All rights reserved.