public class HashBasedNumberedShardSpec extends NumberedShardSpec
| Constructor and Description |
|---|
HashBasedNumberedShardSpec(int partitionNum,
int partitions,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
io.druid.timeline.partition.ShardSpecLookup |
getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs) |
protected int |
hash(long timestamp,
io.druid.data.input.InputRow inputRow) |
boolean |
isInChunk(long timestamp,
io.druid.data.input.InputRow inputRow) |
String |
toString() |
createChunk, getPartitionNum, getPartitionspublic HashBasedNumberedShardSpec(int partitionNum,
int partitions,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public boolean isInChunk(long timestamp,
io.druid.data.input.InputRow inputRow)
isInChunk in interface io.druid.timeline.partition.ShardSpecisInChunk in class NumberedShardSpecprotected int hash(long timestamp,
io.druid.data.input.InputRow inputRow)
public String toString()
toString in class NumberedShardSpecpublic io.druid.timeline.partition.ShardSpecLookup getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs)
getLookup in interface io.druid.timeline.partition.ShardSpecgetLookup in class NumberedShardSpecCopyright © 2011–2015. All rights reserved.