Class CachableBlockFile.Writer
- java.lang.Object
-
- org.apache.accumulo.core.file.blockfile.impl.CachableBlockFile.Writer
-
- All Implemented Interfaces:
BlockFileWriter
- Enclosing class:
- CachableBlockFile
public static class CachableBlockFile.Writer extends Object implements BlockFileWriter
-
-
Constructor Summary
Constructors Constructor Description Writer(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path fName, String compressAlgor, RateLimiter writeLimiter, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration)
Writer(OutputStreamType fsout, String compressAlgor, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
long
getLength()
ABlockWriter
prepareDataBlock()
ABlockWriter
prepareMetaBlock(String name)
-
-
-
Constructor Detail
-
Writer
public Writer(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path fName, String compressAlgor, RateLimiter writeLimiter, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration) throws IOException
- Throws:
IOException
-
Writer
public Writer(OutputStreamType fsout, String compressAlgor, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration) throws IOException
- Throws:
IOException
-
-
Method Detail
-
prepareMetaBlock
public ABlockWriter prepareMetaBlock(String name) throws IOException
- Specified by:
prepareMetaBlock
in interfaceBlockFileWriter
- Throws:
IOException
-
prepareDataBlock
public ABlockWriter prepareDataBlock() throws IOException
- Specified by:
prepareDataBlock
in interfaceBlockFileWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceBlockFileWriter
- Throws:
IOException
-
getLength
public long getLength() throws IOException
- Specified by:
getLength
in interfaceBlockFileWriter
- Throws:
IOException
-
-