s.put(0, DatumFactory.createText("A"));
s.put(1, DatumFactory.createText("F"));
Tuple e = new VTuple(2);
e.put(0, DatumFactory.createText("R"));
e.put(1, DatumFactory.createText("O"));
TupleRange expected = new TupleRange(schema, s, e);
RangePartitionAlgorithm partitioner
= new UniformRangePartition(schema, expected, true);
TupleRange [] ranges = partitioner.partition(31);
TupleRange prev = null;
for (TupleRange r : ranges) {
if (prev == null) {
prev = r;
} else {
assertTrue(prev.compareTo(r) < 0);
}
}
}