|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.file.rfile.bcfile.BCFile.Writer
public static class BCFile.Writer
BCFile writer, the entry point for creating a new BCFile.
Nested Class Summary | |
---|---|
class |
BCFile.Writer.BlockAppender
Access point to stuff data into a block. |
Constructor Summary | |
---|---|
BCFile.Writer(org.apache.hadoop.fs.FSDataOutputStream fout,
String compressionName,
org.apache.hadoop.conf.Configuration conf,
boolean trackDataBlocks)
Constructor |
Method Summary | |
---|---|
void |
close()
Close the BCFile Writer. |
BCFile.Writer.BlockAppender |
prepareDataBlock()
Create a Data Block and obtain an output stream for adding data into the block. |
BCFile.Writer.BlockAppender |
prepareMetaBlock(String name)
Create a Meta Block and obtain an output stream for adding data into the block. |
BCFile.Writer.BlockAppender |
prepareMetaBlock(String name,
String compressionName)
Create a Meta Block and obtain an output stream for adding data into the block. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BCFile.Writer(org.apache.hadoop.fs.FSDataOutputStream fout, String compressionName, org.apache.hadoop.conf.Configuration conf, boolean trackDataBlocks) throws IOException
fout
- FS output stream.compressionName
- Name of the compression algorithm, which will be used for all data blocks.
IOException
Compression.getSupportedAlgorithms()
Method Detail |
---|
public void close() throws IOException
close
is not allowed and may lead to undetermined results.
close
in interface Closeable
IOException
public BCFile.Writer.BlockAppender prepareMetaBlock(String name, String compressionName) throws IOException, MetaBlockAlreadyExists
name
- The name of the Meta Block. The name must not conflict with existing Meta Blocks.compressionName
- The name of the compression algorithm to be used.
IOException
MetaBlockAlreadyExists
- If the meta block with the name already exists.public BCFile.Writer.BlockAppender prepareMetaBlock(String name) throws IOException, MetaBlockAlreadyExists
name
- The name of the Meta Block. The name must not conflict with existing Meta Blocks.
MetaBlockAlreadyExists
- If the meta block with the name already exists.
IOException
public BCFile.Writer.BlockAppender prepareDataBlock() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |