@Override public void readFields(DataInput input) throws IOException { super.readFields(input); isNegate = input.readBoolean(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); int ordinal = WritableUtils.readVInt(input); rowKeyOrderOptimizable = false; if (ordinal < 0) { rowKeyOrderOptimizable = true; ordinal = -(ordinal+1); } toType = PDataType.values()[ordinal]; toSortOrder = SortOrder.fromSystemValue(WritableUtils.readVInt(input)); int byteSize = WritableUtils.readVInt(input); this.maxLength = byteSize == -1 ? null : byteSize; }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); input.readBoolean(); // Unused, but left for b/w compat. TODO: remove in next major release fixedWidth = WritableUtils.readVInt(input); byte[] valuesBytes = Bytes.readByteArray(input); valuesByteLength = valuesBytes.length; int len = fixedWidth == -1 ? WritableUtils.readVInt(input) : valuesByteLength / fixedWidth; // TODO: consider using a regular HashSet as we never serialize from the server-side values = Sets.newLinkedHashSetWithExpectedSize(len); int offset = 0; int i = 0; if (i < len) { offset = readValue(input, valuesBytes, offset, minValue = new ImmutableBytesPtr()); while (++i < len-1) { offset = readValue(input, valuesBytes, offset, new ImmutableBytesPtr()); } if (i < len) { offset = readValue(input, valuesBytes, offset, maxValue = new ImmutableBytesPtr()); } else { maxValue = minValue; } } else { minValue = maxValue = new ImmutableBytesPtr(ByteUtil.EMPTY_BYTE_ARRAY); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); isNegate = input.readBoolean(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); isNegate = input.readBoolean(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); int ordinal = WritableUtils.readVInt(input); rowKeyOrderOptimizable = false; if (ordinal < 0) { rowKeyOrderOptimizable = true; ordinal = -(ordinal+1); } toType = PDataType.values()[ordinal]; toSortOrder = SortOrder.fromSystemValue(WritableUtils.readVInt(input)); int byteSize = WritableUtils.readVInt(input); this.maxLength = byteSize == -1 ? null : byteSize; }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); int ordinal = WritableUtils.readVInt(input); rowKeyOrderOptimizable = false; if (ordinal < 0) { rowKeyOrderOptimizable = true; ordinal = -(ordinal+1); } toType = PDataType.values()[ordinal]; toSortOrder = SortOrder.fromSystemValue(WritableUtils.readVInt(input)); int byteSize = WritableUtils.readVInt(input); this.maxLength = byteSize == -1 ? null : byteSize; }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); input.readBoolean(); // Unused, but left for b/w compat. TODO: remove in next major release fixedWidth = WritableUtils.readVInt(input); byte[] valuesBytes = Bytes.readByteArray(input); valuesByteLength = valuesBytes.length; int len = fixedWidth == -1 ? WritableUtils.readVInt(input) : valuesByteLength / fixedWidth; // TODO: consider using a regular HashSet as we never serialize from the server-side values = Sets.newLinkedHashSetWithExpectedSize(len); int offset = 0; int i = 0; if (i < len) { offset = readValue(input, valuesBytes, offset, minValue = new ImmutableBytesPtr()); while (++i < len-1) { offset = readValue(input, valuesBytes, offset, new ImmutableBytesPtr()); } if (i < len) { offset = readValue(input, valuesBytes, offset, maxValue = new ImmutableBytesPtr()); } else { maxValue = minValue; } } else { minValue = maxValue = new ImmutableBytesPtr(ByteUtil.EMPTY_BYTE_ARRAY); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); input.readBoolean(); // Unused, but left for b/w compat. TODO: remove in next major release fixedWidth = WritableUtils.readVInt(input); byte[] valuesBytes = Bytes.readByteArray(input); valuesByteLength = valuesBytes.length; int len = fixedWidth == -1 ? WritableUtils.readVInt(input) : valuesByteLength / fixedWidth; // TODO: consider using a regular HashSet as we never serialize from the server-side values = Sets.newLinkedHashSetWithExpectedSize(len); int offset = 0; int i = 0; if (i < len) { offset = readValue(input, valuesBytes, offset, minValue = new ImmutableBytesPtr()); while (++i < len-1) { offset = readValue(input, valuesBytes, offset, new ImmutableBytesPtr()); } if (i < len) { offset = readValue(input, valuesBytes, offset, maxValue = new ImmutableBytesPtr()); } else { maxValue = minValue; } } else { minValue = maxValue = new ImmutableBytesPtr(ByteUtil.EMPTY_BYTE_ARRAY); } }