public int getPartition()

in spark/src/main/java/org/apache/accumulo/spark/CopyPlus5K.java [59:63]


    public int getPartition(Object o) {
      int index = Collections.binarySearch(splits, ((Key) o).getRow().toString());
      index = index < 0 ? (index + 1) * -1 : index;
      return index;
    }