public class LinearShardSpec extends Object implements ShardSpec
partitionNum represents an unique id of a partition.| Constructor and Description | 
|---|
LinearShardSpec(Integer partitionNum)  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> PartitionChunk<T> | 
createChunk(T obj)  | 
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)  | 
int | 
getPartitionNum()  | 
boolean | 
isInChunk(long timestamp,
         InputRow inputRow)  | 
String | 
toString()  | 
public LinearShardSpec(Integer partitionNum)
public int getPartitionNum()
getPartitionNum in interface ShardSpecpublic ShardSpecLookup getLookup(List<ShardSpec> shardSpecs)
public Map<String,com.google.common.collect.Range<String>> getDomain()
ShardSpecpublic <T> PartitionChunk<T> createChunk(T obj)
createChunk in interface ShardSpecpublic boolean isInChunk(long timestamp,
                         InputRow inputRow)
Copyright © 2011–2018. All rights reserved.