public class HaltOpMessage extends Object implements Externalizable, IHaltOpMessage
IQueryClient
when an operator is done executing
for some chunk of inputs.Constructor and Description |
---|
HaltOpMessage()
De-serialization constructor.
|
HaltOpMessage(UUID queryId,
int bopId,
int partitionId,
UUID serviceId,
Throwable cause,
int sinkMessagesOut,
int altSinkMessagesOut,
BOpStats taskStats) |
Modifier and Type | Method and Description |
---|---|
int |
getAltSinkMessagesOut()
The number of the
IChunkMessage s that were output for the
alternative sink. |
int |
getBOpId()
Return the operator identifier.
|
Throwable |
getCause()
The cause and
null if the operator halted normally. |
int |
getPartitionId()
Return the index partition identifier.
|
UUID |
getQueryId()
Return the query identifier.
|
UUID |
getServiceId()
Return the identifier of the service on which the operator will/did
execute.
|
int |
getSinkMessagesOut()
The number of the
IChunkMessage s that were output for the primary
sink. |
BOpStats |
getStats()
The statistics for the execution of the bop against the partition on the
service.
|
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public HaltOpMessage()
public HaltOpMessage(UUID queryId, int bopId, int partitionId, UUID serviceId, Throwable cause, int sinkMessagesOut, int altSinkMessagesOut, BOpStats taskStats)
queryId
- The query identifier.bopId
- The operator whose execution phase has terminated for a
specific index partition and input chunk.partitionId
- The index partition against which the operator was executed.serviceId
- The node which executed the operator.cause
- null
unless execution halted abnormally.sinkMessagesOut
- The number of IChunkMessage
which were sent to the
operator for the default sink.altSinkMessagesOut
- The number of IChunkMessage
which were sent to the
operator for the alternative sink.taskStats
- The statistics for the execution of that bop on that shard and
service.public UUID getQueryId()
IOpMessage
getQueryId
in interface IOpMessage
public int getBOpId()
IOpMessage
getBOpId
in interface IOpMessage
public int getPartitionId()
IOpMessage
getPartitionId
in interface IOpMessage
public UUID getServiceId()
IOpLifeCycleMessage
getServiceId
in interface IOpLifeCycleMessage
public Throwable getCause()
IHaltOpMessage
null
if the operator halted normally.getCause
in interface IHaltOpMessage
public int getSinkMessagesOut()
IHaltOpMessage
IChunkMessage
s that were output for the primary
sink. (This information is used for the atomic termination decision.)
For a given downstream operator this is ONE (1) for scale-up. For scale-out, this is one per index partition over which the intermediate results were mapped.
getSinkMessagesOut
in interface IHaltOpMessage
public int getAltSinkMessagesOut()
IHaltOpMessage
IChunkMessage
s that were output for the
alternative sink. (This information is used for the atomic termination
decision.)
For a given downstream operator this is ONE (1) for scale-up. For scale-out, this is one per index partition over which the intermediate results were mapped. It is zero if there was no alternative sink for the operator.
getAltSinkMessagesOut
in interface IHaltOpMessage
public BOpStats getStats()
IHaltOpMessage
getStats
in interface IHaltOpMessage
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.