public final class OffsetRange
extends Object
implements scala.Serializable
OffsetRange.create()
.Modifier and Type | Method and Description |
---|---|
static OffsetRange |
apply(String topic,
int partition,
long fromOffset,
long untilOffset) |
static OffsetRange |
apply(kafka.common.TopicAndPartition topicAndPartition,
long fromOffset,
long untilOffset) |
static OffsetRange |
create(String topic,
int partition,
long fromOffset,
long untilOffset) |
static OffsetRange |
create(kafka.common.TopicAndPartition topicAndPartition,
long fromOffset,
long untilOffset) |
boolean |
equals(Object obj)
exclusive ending offset
|
long |
fromOffset()
inclusive starting offset
|
int |
hashCode() |
int |
partition()
Kafka partition id
|
String |
topic()
Kafka topic name
|
String |
toString() |
long |
untilOffset()
exclusive ending offset
|
public static OffsetRange create(String topic, int partition, long fromOffset, long untilOffset)
public static OffsetRange create(kafka.common.TopicAndPartition topicAndPartition, long fromOffset, long untilOffset)
public static OffsetRange apply(String topic, int partition, long fromOffset, long untilOffset)
public static OffsetRange apply(kafka.common.TopicAndPartition topicAndPartition, long fromOffset, long untilOffset)
public String topic()
public int partition()
public long fromOffset()
public long untilOffset()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object