Writable@Public @Stable public abstract class CompressedWritable extends java.lang.Object implements Writable
| Constructor | Description |
|---|---|
CompressedWritable() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
ensureInflated() |
Must be called by all methods which access fields to ensure that the data
has been uncompressed.
|
void |
readFields(java.io.DataInput in) |
Deserialize the fields of this object from
in. |
protected abstract void |
readFieldsCompressed(java.io.DataInput in) |
Subclasses implement this instead of
readFields(DataInput). |
void |
write(java.io.DataOutput out) |
Serialize the fields of this object to
out. |
protected abstract void |
writeCompressed(java.io.DataOutput out) |
Subclasses implement this instead of
write(DataOutput). |
public final void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.java.io.IOException - any other problem for readFields.protected void ensureInflated()
protected abstract void readFieldsCompressed(java.io.DataInput in)
throws java.io.IOException
readFields(DataInput).in - data input.java.io.IOException - raised on errors performing I/O.public final void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.protected abstract void writeCompressed(java.io.DataOutput out)
throws java.io.IOException
write(DataOutput).out - data output.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.