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 |
---|---|
Map<String,com.google.common.collect.Range<String>> |
getDomain()
Get the possible range of each dimension for the rows this shard contains.
|
ShardSpecLookup |
getLookup(List<ShardSpec> shardSpecs) |
List<String> |
getPartitionDimensions() |
protected int |
hash(long timestamp,
InputRow inputRow) |
boolean |
isInChunk(long timestamp,
InputRow inputRow) |
String |
toString() |
createChunk, getPartitionNum, getPartitions
public boolean isInChunk(long timestamp, InputRow inputRow)
isInChunk
in interface ShardSpec
isInChunk
in class NumberedShardSpec
protected int hash(long timestamp, InputRow inputRow)
public String toString()
toString
in class NumberedShardSpec
public ShardSpecLookup getLookup(List<ShardSpec> shardSpecs)
getLookup
in interface ShardSpec
getLookup
in class NumberedShardSpec
public Map<String,com.google.common.collect.Range<String>> getDomain()
ShardSpec
getDomain
in interface ShardSpec
getDomain
in class NumberedShardSpec
Copyright © 2011–2017. All rights reserved.