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 |
apply(scala.Tuple4<String,Object,Object,Object> t) |
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() |
scala.Tuple4<String,Object,Object,Object> |
toTuple()
this is to avoid ClassNotFoundException during checkpoint restore
|
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 static OffsetRange apply(scala.Tuple4<String,Object,Object,Object> t)
public String topic()
public int partition()
public long fromOffset()
public long untilOffset()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic scala.Tuple4<String,Object,Object,Object> toTuple()