private boolean deserializeNull(DataInputView source) throws IOException { boolean isNull = source.readBoolean(); if (isNull) { source.skipBytesToRead(padding.length); } return isNull; }
private boolean deserializeNull(DataInputView source) throws IOException { boolean isNull = source.readBoolean(); if (isNull) { source.skipBytesToRead(padding.length); } return isNull; }
@Override public byte[] deserialize(DataInputView source) throws IOException { ByteArrayOutputStreamWithPos output = new ByteArrayOutputStreamWithPos(); byte[] buffer = new byte[1024]; int numBytes; source.skipBytesToRead(1); while ((numBytes = source.read(buffer)) != -1) { output.write(buffer, 0, numBytes); } return output.toByteArray(); }
in.skipBytesToRead(lengthBeforeDecompression); } else if (in instanceof DataInputDeserializer) { in.skipBytesToRead(lengthBeforeDecompression);