org.apache.solr.common.cloud
Class HashPartitioner
java.lang.Object
org.apache.solr.common.cloud.HashPartitioner
public class HashPartitioner
- extends Object
Class to partition int range into n ranges.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashPartitioner
public HashPartitioner()
fromString
public HashPartitioner.Range fromString(String range)
fullRange
public HashPartitioner.Range fullRange()
partitionRange
public List<HashPartitioner.Range> partitionRange(int partitions,
HashPartitioner.Range range)
partitionRange
public List<HashPartitioner.Range> partitionRange(int partitions,
int min,
int max)
- Returns the range for each partition
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.