Package org.apache.heron.simulator.utils
Class TupleCache
- java.lang.Object
-
- org.apache.heron.simulator.utils.TupleCache
-
public class TupleCache extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
TupleCache.TupleList
-
Constructor Summary
Constructors Constructor Description TupleCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAckTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
long
addDataTuple(int srcTaskId, int destTaskId, org.apache.heron.api.generated.TopologyAPI.StreamId streamId, org.apache.heron.proto.system.HeronTuples.HeronDataTuple tuple, boolean isAnchored)
void
addEmitTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
void
addFailTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
void
clear()
protected TupleCache.TupleList
get(int destTaskId)
Map<Integer,List<org.apache.heron.proto.system.HeronTuples.HeronTupleSet>>
getCache()
boolean
isEmpty()
-
-
-
Method Detail
-
get
protected TupleCache.TupleList get(int destTaskId)
-
addDataTuple
public long addDataTuple(int srcTaskId, int destTaskId, org.apache.heron.api.generated.TopologyAPI.StreamId streamId, org.apache.heron.proto.system.HeronTuples.HeronDataTuple tuple, boolean isAnchored)
-
addAckTuple
public void addAckTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
-
addFailTuple
public void addFailTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
-
addEmitTuple
public void addEmitTuple(int srcTaskId, int taskId, org.apache.heron.proto.system.HeronTuples.AckTuple tuple)
-
getCache
public Map<Integer,List<org.apache.heron.proto.system.HeronTuples.HeronTupleSet>> getCache()
-
isEmpty
public boolean isEmpty()
-
clear
public void clear()
-
-