protected final boolean isNull( Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength) { // Test the length first so in most cases we avoid doing a byte[] // comparison. return fieldLength < 0 || (fieldLength == nullSequence.getLength() && LazyUtils.compare(bytes, fieldByteBegin, fieldLength, nullSequence.getBytes(), 0, nullSequence.getLength()) == 0); }
protected final boolean isNull( Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength) { // Test the length first so in most cases we avoid doing a byte[] // comparison. return fieldLength < 0 || (fieldLength == nullSequence.getLength() && LazyUtils.compare(bytes, fieldByteBegin, fieldLength, nullSequence.getBytes(), 0, nullSequence.getLength()) == 0); }
protected final boolean isNull( Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength) { // Test the length first so in most cases we avoid doing a byte[] // comparison. return fieldLength < 0 || (fieldLength == nullSequence.getLength() && LazyUtils.compare(bytes, fieldByteBegin, fieldLength, nullSequence.getBytes(), 0, nullSequence.getLength()) == 0); }
protected final boolean isNull( Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength) { // Test the length first so in most cases we avoid doing a byte[] // comparison. return fieldLength < 0 || (fieldLength == nullSequence.getLength() && LazyUtils.compare(bytes, fieldByteBegin, fieldLength, nullSequence.getBytes(), 0, nullSequence.getLength()) == 0); }
protected final boolean isNull( Text nullSequence, byte[] bytes, int fieldByteBegin, int fieldLength) { // Test the length first so in most cases we avoid doing a byte[] // comparison. return fieldLength < 0 || (fieldLength == nullSequence.getLength() && LazyUtils.compare(bytes, fieldByteBegin, fieldLength, nullSequence.getBytes(), 0, nullSequence.getLength()) == 0); }