org.apache.accumulo.core.file.blockfile.impl
public static class CachableBlockFile.Writer extends Object implements BlockFileWriter
Constructor and Description |
---|
CachableBlockFile.Writer(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path fName,
String compressAlgor,
org.apache.hadoop.conf.Configuration conf) |
CachableBlockFile.Writer(org.apache.hadoop.fs.FSDataOutputStream fsout,
String compressAlgor,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ABlockWriter |
prepareDataBlock() |
ABlockWriter |
prepareMetaBlock(String name) |
ABlockWriter |
prepareMetaBlock(String name,
String compressionName) |
public CachableBlockFile.Writer(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path fName, String compressAlgor, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public CachableBlockFile.Writer(org.apache.hadoop.fs.FSDataOutputStream fsout, String compressAlgor, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public ABlockWriter prepareMetaBlock(String name) throws IOException
prepareMetaBlock
in interface BlockFileWriter
IOException
public ABlockWriter prepareMetaBlock(String name, String compressionName) throws IOException
prepareMetaBlock
in interface BlockFileWriter
IOException
public ABlockWriter prepareDataBlock() throws IOException
prepareDataBlock
in interface BlockFileWriter
IOException
public void close() throws IOException
close
in interface BlockFileWriter
IOException
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.