Class IdentityCodec.IdentityCompressor
- java.lang.Object
-
- org.apache.accumulo.core.file.rfile.bcfile.IdentityCodec.IdentityCompressor
-
- All Implemented Interfaces:
org.apache.hadoop.io.compress.Compressor
- Enclosing class:
- IdentityCodec
public static class IdentityCodec.IdentityCompressor extends Object implements org.apache.hadoop.io.compress.Compressor
-
-
Constructor Summary
Constructors Constructor Description IdentityCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compress(byte[] b, int off, int len)
void
end()
void
finish()
boolean
finished()
long
getBytesRead()
long
getBytesWritten()
boolean
needsInput()
void
reinit(org.apache.hadoop.conf.Configuration conf)
void
reset()
void
setDictionary(byte[] b, int off, int len)
void
setInput(byte[] b, int off, int len)
-
-
-
Method Detail
-
compress
public int compress(byte[] b, int off, int len) throws IOException
- Specified by:
compress
in interfaceorg.apache.hadoop.io.compress.Compressor
- Throws:
IOException
-
end
public void end()
- Specified by:
end
in interfaceorg.apache.hadoop.io.compress.Compressor
-
finish
public void finish()
- Specified by:
finish
in interfaceorg.apache.hadoop.io.compress.Compressor
-
finished
public boolean finished()
- Specified by:
finished
in interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesRead
public long getBytesRead()
- Specified by:
getBytesRead
in interfaceorg.apache.hadoop.io.compress.Compressor
-
getBytesWritten
public long getBytesWritten()
- Specified by:
getBytesWritten
in interfaceorg.apache.hadoop.io.compress.Compressor
-
needsInput
public boolean needsInput()
- Specified by:
needsInput
in interfaceorg.apache.hadoop.io.compress.Compressor
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.apache.hadoop.io.compress.Compressor
-
setDictionary
public void setDictionary(byte[] b, int off, int len)
- Specified by:
setDictionary
in interfaceorg.apache.hadoop.io.compress.Compressor
-
setInput
public void setInput(byte[] b, int off, int len)
- Specified by:
setInput
in interfaceorg.apache.hadoop.io.compress.Compressor
-
reinit
public void reinit(org.apache.hadoop.conf.Configuration conf)
- Specified by:
reinit
in interfaceorg.apache.hadoop.io.compress.Compressor
-
-