private static final long serialVersionUID = 1L;
@Override
public IBinaryBooleanInspector createBinaryBooleanInspector(IHyracksTaskContext ctx) {
final TaggedValuePointable tvp = (TaggedValuePointable) TaggedValuePointable.FACTORY.createPointable();
final BooleanPointable bp = (BooleanPointable) BooleanPointable.FACTORY.createPointable();
return new IBinaryBooleanInspector() {
@Override
public boolean getBooleanValue(byte[] bytes, int offset, int length) {
tvp.set(bytes, offset, length);
assert tvp.getTag() == ValueTag.XS_BOOLEAN_TAG;
tvp.getValue(bp);
return bp.getBoolean();
}
};
}