@Override
public IBinaryIntegerInspector createBinaryIntegerInspector(IHyracksTaskContext ctx) {
final TaggedValuePointable tvp = (TaggedValuePointable) TaggedValuePointable.FACTORY.createPointable();
final IntegerPointable ip = (IntegerPointable) IntegerPointable.FACTORY.createPointable();
return new IBinaryIntegerInspector() {
@Override
public int getIntegerValue(byte[] bytes, int offset, int length) {
tvp.set(bytes, offset, length);
assert tvp.getTag() == ValueTag.XS_INT_TAG;
tvp.getValue(ip);