public class NumberedPartitionChunk<T> extends Object implements io.druid.timeline.partition.PartitionChunk<T>
Constructor and Description |
---|
NumberedPartitionChunk(int chunkNumber,
int chunks,
T object) |
Modifier and Type | Method and Description |
---|---|
boolean |
abuts(io.druid.timeline.partition.PartitionChunk<T> other) |
int |
compareTo(io.druid.timeline.partition.PartitionChunk<T> other) |
boolean |
equals(Object o) |
int |
getChunkNumber() |
T |
getObject() |
int |
hashCode() |
boolean |
isEnd() |
boolean |
isStart() |
static <T> NumberedPartitionChunk<T> |
make(int chunkNumber,
int chunks,
T obj) |
public NumberedPartitionChunk(int chunkNumber, int chunks, T object)
public static <T> NumberedPartitionChunk<T> make(int chunkNumber, int chunks, T obj)
public T getObject()
getObject
in interface io.druid.timeline.partition.PartitionChunk<T>
public boolean abuts(io.druid.timeline.partition.PartitionChunk<T> other)
abuts
in interface io.druid.timeline.partition.PartitionChunk<T>
public boolean isStart()
isStart
in interface io.druid.timeline.partition.PartitionChunk<T>
public boolean isEnd()
isEnd
in interface io.druid.timeline.partition.PartitionChunk<T>
public int getChunkNumber()
getChunkNumber
in interface io.druid.timeline.partition.PartitionChunk<T>
public int compareTo(io.druid.timeline.partition.PartitionChunk<T> other)
compareTo
in interface Comparable<io.druid.timeline.partition.PartitionChunk<T>>
Copyright © 2011–2015. All rights reserved.