public interface BlockEncoder
For example, implementations may compress or encrypt.
BlockDecoder
Modifier and Type | Interface and Description |
---|---|
static interface |
BlockEncoder.WritableBytes
Writable byte buffer.
|
Modifier and Type | Method and Description |
---|---|
BlockEncoder.WritableBytes |
encode(DataInput blockBytes,
long length)
Encodes all the bytes of one block in a single operation.
|
BlockEncoder.WritableBytes encode(DataInput blockBytes, long length) throws IOException
blockBytes
- The input block bytes to read.length
- The number of bytes to read from the input.IOException
- If an encoding error occurs.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.