public static class TotalOrderPartitioner.BinarySearchNode<K> extends Object implements TotalOrderPartitioner.Node<K>
| Constructor and Description | 
|---|
| BinarySearchNode(K[] splitPoints,
                org.apache.hadoop.io.RawComparator<K> comparator) | 
| Modifier and Type | Method and Description | 
|---|---|
| int | findPartition(K key)Locate partition in keyset K, st [Ki..Ki+1) defines a partition,
 with implicit K0 = -inf, Kn = +inf, and |K| = #partitions - 1. | 
public int findPartition(K key)
TotalOrderPartitioner.NodefindPartition in interface TotalOrderPartitioner.Node<K>Copyright © 2017 The Apache Software Foundation. All rights reserved.