public class HashBasedNumberedShardSpec extends NumberedShardSpec
| Constructor and Description |
|---|
HashBasedNumberedShardSpec(int partitionNum,
int partitions,
List<String> partitionDimensions,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.druid.timeline.partition.ShardSpecLookup |
getLookup(List<org.apache.druid.timeline.partition.ShardSpec> shardSpecs) |
List<String> |
getPartitionDimensions() |
protected int |
hash(long timestamp,
org.apache.druid.data.input.InputRow inputRow) |
static int |
hash(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
List<Object> objects) |
boolean |
isInChunk(long timestamp,
org.apache.druid.data.input.InputRow inputRow) |
String |
toString() |
createChunk, equals, getDomainDimensions, getPartitionNum, getPartitions, hashCode, possibleInDomainpublic boolean isInChunk(long timestamp,
org.apache.druid.data.input.InputRow inputRow)
isInChunk in interface org.apache.druid.timeline.partition.ShardSpecisInChunk in class NumberedShardSpecprotected int hash(long timestamp,
org.apache.druid.data.input.InputRow inputRow)
public static int hash(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
List<Object> objects)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic String toString()
toString in class NumberedShardSpecpublic org.apache.druid.timeline.partition.ShardSpecLookup getLookup(List<org.apache.druid.timeline.partition.ShardSpec> shardSpecs)
getLookup in interface org.apache.druid.timeline.partition.ShardSpecgetLookup in class NumberedShardSpecCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.