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, getPartitionspublic boolean isInChunk(long timestamp,
                         InputRow inputRow)
isInChunk in interface ShardSpecisInChunk in class NumberedShardSpecprotected int hash(long timestamp,
                   InputRow inputRow)
public String toString()
toString in class NumberedShardSpecpublic ShardSpecLookup getLookup(List<ShardSpec> shardSpecs)
getLookup in interface ShardSpecgetLookup in class NumberedShardSpecpublic Map<String,com.google.common.collect.Range<String>> getDomain()
ShardSpecgetDomain in interface ShardSpecgetDomain in class NumberedShardSpecCopyright © 2011–2018. All rights reserved.