|
||||||||||
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,
java.lang.String compressionName,
org.apache.hadoop.conf.Configuration conf)
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(java.lang.String name)
Create a Meta Block and obtain an output stream for adding data into the block. |
BCFile.Writer.BlockAppender |
prepareMetaBlock(java.lang.String name,
java.lang.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, java.lang.String compressionName, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
fout
- FS output stream.compressionName
- Name of the compression algorithm, which will be used for all data blocks.
java.io.IOException
Compression.getSupportedAlgorithms()
Method Detail |
---|
public void close() throws java.io.IOException
close
is not allowed and may lead to undetermined results.
close
in interface java.io.Closeable
java.io.IOException
public BCFile.Writer.BlockAppender prepareMetaBlock(java.lang.String name, java.lang.String compressionName) throws java.io.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.
java.io.IOException
MetaBlockAlreadyExists
- If the meta block with the name already exists.public BCFile.Writer.BlockAppender prepareMetaBlock(java.lang.String name) throws java.io.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.
java.io.IOException
public BCFile.Writer.BlockAppender prepareDataBlock() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |