| Constructor and Description |
|---|
NoneShardSpec()
Deprecated.
use
instance() instead |
| Modifier and Type | Method and Description |
|---|---|
<T> PartitionChunk<T> |
createChunk(T obj) |
boolean |
equals(Object obj) |
List<String> |
getDomainDimensions()
Get dimensions who have possible range for the rows this shard contains.
|
ShardSpecLookup |
getLookup(List<ShardSpec> shardSpecs) |
int |
getPartitionNum() |
int |
hashCode() |
static NoneShardSpec |
instance() |
boolean |
isInChunk(long timestamp,
InputRow inputRow) |
boolean |
possibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain)
if given domain ranges are not possible in this shard, return false; otherwise return true;
|
String |
toString() |
@Deprecated public NoneShardSpec()
instance() insteadpublic static NoneShardSpec instance()
public <T> PartitionChunk<T> createChunk(T obj)
createChunk in interface ShardSpecpublic boolean isInChunk(long timestamp,
InputRow inputRow)
public int getPartitionNum()
getPartitionNum in interface ShardSpecpublic ShardSpecLookup getLookup(List<ShardSpec> shardSpecs)
public List<String> getDomainDimensions()
ShardSpecgetDomainDimensions in interface ShardSpecpublic boolean possibleInDomain(Map<String,com.google.common.collect.RangeSet<String>> domain)
ShardSpecpossibleInDomain in interface ShardSpecCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.