@Test public void testEncodedLength() { PositionedByteRange buff = new SimplePositionedByteRange(20); for (DataType<byte[]> type : new OrderedBlobVar[] { OrderedBlobVar.ASCENDING, OrderedBlobVar.DESCENDING }) { for (byte[] val : VALUES) { buff.setPosition(0); type.encode(buff, val); assertEquals( "encodedLength does not match actual, " + Bytes.toStringBinary(val), buff.getPosition(), type.encodedLength(val)); } } }
@Override public int encodedLength(byte[] val) { return null == val ? 1 : OrderedBytes.blobVarEncodedLength(val.length); }
OrderedBlobVar extends OrderedBytesBase<byte[]> { @Override public int encodedLength(byte[] val) { return null == val ? 1 : OrderedBytes.blobVarEncodedLength(val.length); } }
OrderedBlobVar extends OrderedBytesBase<byte[]> { @Override public int encodedLength(byte[] val) { return null == val ? 1 : OrderedBytes.blobVarEncodedLength(val.length); } protected  OrderedBlobVar(Order order); }
OrderedBlobVar extends OrderedBytesBase<byte[]> { @Override public int encodedLength(byte[] val) { return null == val ? 1 : OrderedBytes.blobVarEncodedLength(val.length); } protected  OrderedBlobVar(Order order); @Override int encodedLength(byte[] val); @Override Class<byte[]> encodedClass(); @Override byte[] decode(PositionedByteRange src); @Override int encode(PositionedByteRange dst, byte[] val); int encode(PositionedByteRange dst, byte[] val, int voff, int vlen); }
OrderedBlobVar extends OrderedBytesBase<byte[]> { @Override public int encodedLength(byte[] val) { return null == val ? 1 : OrderedBytes.blobVarEncodedLength(val.length); } protected  OrderedBlobVar(Order order); @Override int encodedLength(byte[] val); @Override Class<byte[]> encodedClass(); @Override byte[] decode(PositionedByteRange src); @Override int encode(PositionedByteRange dst, byte[] val); int encode(PositionedByteRange dst, byte[] val, int voff, int vlen); static final OrderedBlobVar ASCENDING; static final OrderedBlobVar DESCENDING; }