org.apache.accumulo.core.file.blockfile.impl
Class CachableBlockFile.Writer

java.lang.Object
  extended by 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
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)
           
 
Method Summary
 void close()
           
 ABlockWriter prepareDataBlock()
           
 ABlockWriter prepareMetaBlock(String name)
           
 ABlockWriter prepareMetaBlock(String name, String compressionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachableBlockFile.Writer

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
Throws:
IOException

CachableBlockFile.Writer

public CachableBlockFile.Writer(org.apache.hadoop.fs.FSDataOutputStream fsout,
                                String compressAlgor,
                                org.apache.hadoop.conf.Configuration conf)
                         throws IOException
Throws:
IOException
Method Detail

prepareMetaBlock

public ABlockWriter prepareMetaBlock(String name)
                              throws IOException
Specified by:
prepareMetaBlock in interface BlockFileWriter
Throws:
IOException

prepareMetaBlock

public ABlockWriter prepareMetaBlock(String name,
                                     String compressionName)
                              throws IOException
Specified by:
prepareMetaBlock in interface BlockFileWriter
Throws:
IOException

prepareDataBlock

public ABlockWriter prepareDataBlock()
                              throws IOException
Specified by:
prepareDataBlock in interface BlockFileWriter
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface BlockFileWriter
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.