/** * Compares two bytes writables, and returns true if the first one should be * kept, and false otherwise. For the MIN function, this method will return * true if the first bytes writable is less than the second. * * @param ibw1 the first bytes writable * @param ibw2 the second bytes writable * @return true if the first bytes writable should be kept */ protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return 0 >= getDataType().compareTo(ibw1, sortOrder, ibw2, sortOrder, getDataType()); }
@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) { if (isNull()) { return false; } ptr.set(value.get(), value.getOffset(), value.getLength()); return true; } }
@Override protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return !super.keepFirst(ibw1, ibw2); }
@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) { if (isNull()) { return false; } ptr.set(value.get(), value.getOffset(), value.getLength()); return true; } }
@Override protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return !super.keepFirst(ibw1, ibw2); }
/** * Compares two bytes writables, and returns true if the first one should be * kept, and false otherwise. For the MIN function, this method will return * true if the first bytes writable is less than the second. * * @param ibw1 the first bytes writable * @param ibw2 the second bytes writable * @return true if the first bytes writable should be kept */ protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return 0 >= getDataType().compareTo(ibw1, sortOrder, ibw2, sortOrder, getDataType()); }
@Override public boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr) { if (isNull()) { return false; } ptr.set(value.get(), value.getOffset(), value.getLength()); return true; } }
@Override protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return !super.keepFirst(ibw1, ibw2); }
/** * Compares two bytes writables, and returns true if the first one should be * kept, and false otherwise. For the MIN function, this method will return * true if the first bytes writable is less than the second. * * @param ibw1 the first bytes writable * @param ibw2 the second bytes writable * @return true if the first bytes writable should be kept */ protected boolean keepFirst(ImmutableBytesWritable ibw1, ImmutableBytesWritable ibw2) { return 0 >= getDataType().compareTo(ibw1, sortOrder, ibw2, sortOrder, getDataType()); }