public static class CachableBlockFile.Writer extends Object implements BlockFileWriter
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getLength() |
ABlockWriter |
prepareDataBlock() |
ABlockWriter |
prepareMetaBlock(String name) |
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
IOException
public Writer(OutputStreamType fsout, String compressAlgor, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration accumuloConfiguration) throws IOException
IOException
public ABlockWriter prepareMetaBlock(String name) 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
public long getLength() throws IOException
getLength
in interface BlockFileWriter
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.