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, getPartitions
public 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.ShardSpec
isInChunk
in class NumberedShardSpec
protected int hash(long timestamp, io.druid.data.input.InputRow inputRow)
public String toString()
toString
in class NumberedShardSpec
public io.druid.timeline.partition.ShardSpecLookup getLookup(List<io.druid.timeline.partition.ShardSpec> shardSpecs)
getLookup
in interface io.druid.timeline.partition.ShardSpec
getLookup
in class NumberedShardSpec
Copyright © 2011–2015. All rights reserved.