Constructor and Description |
---|
Partition(int partition)
Constructs a new Samza stream partition from a specified partition number.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Partition that) |
boolean |
equals(java.lang.Object obj) |
int |
getPartitionId() |
int |
hashCode() |
java.lang.String |
toString() |
public Partition(int partition)
partition
- An integer identifying the partition in a Samza stream.public int getPartitionId()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object