Java Code Examples for org.apache.hadoop.io.LongWritable#Comparator
The following examples show how to use
org.apache.hadoop.io.LongWritable#Comparator .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestValuesIterator.java From tez with Apache License 2.0 | 6 votes |
private RawComparator getComparator(TestWithComparator comparator) { switch (comparator) { case LONG: return new LongWritable.Comparator(); case INT: return new IntWritable.Comparator(); case BYTES: return new BytesWritable.Comparator(); case TEZ_BYTES: return new TezBytesComparator(); case TEXT: return new Text.Comparator(); case CUSTOM: return new CustomKey.Comparator(); default: return null; } }
Example 2
Source File: PigLongRawComparator.java From spork with Apache License 2.0 | 4 votes |
public PigLongRawComparator() { super(NullableLongWritable.class); mWrappedComp = new LongWritable.Comparator(); }