public class SystemStreamPartition extends SystemStream
SystemStream
and Partition
.Modifier and Type | Field and Description |
---|---|
protected int |
hash |
protected Partition |
partition |
stream, system
Constructor and Description |
---|
SystemStreamPartition(java.lang.String system,
java.lang.String stream,
Partition partition)
Constructs a Samza stream partition object from specified components.
|
SystemStreamPartition(SystemStreamPartition other)
Constructs a Samza stream partition object based upon an existing Samza stream partition.
|
SystemStreamPartition(SystemStream other,
Partition partition)
Constructs a Samza stream partition object based upon another Samza stream and a specified partition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Partition |
getPartition() |
SystemStream |
getSystemStream() |
int |
hashCode() |
java.lang.String |
toString() |
getStream, getSystem
protected final Partition partition
protected final int hash
public SystemStreamPartition(java.lang.String system, java.lang.String stream, Partition partition)
system
- The name of the system of which this stream is associated with.stream
- The name of the stream as specified in the stream configuration file.partition
- The partition in the stream of which this object is associated with.public SystemStreamPartition(SystemStreamPartition other)
other
- Reference to an already existing Samza stream partition.public SystemStreamPartition(SystemStream other, Partition partition)
other
- Reference to an already existing Samza stream.partition
- Reference to an already existing Samza partition.public Partition getPartition()
public SystemStream getSystemStream()
public int hashCode()
hashCode
in class SystemStream
public boolean equals(java.lang.Object obj)
equals
in class SystemStream
public java.lang.String toString()
toString
in class SystemStream