Class RFile.Writer
- java.lang.Object
-
- org.apache.accumulo.core.file.rfile.RFile.Writer
-
- All Implemented Interfaces:
AutoCloseable
,FileSKVWriter
- Enclosing class:
- RFile
public static class RFile.Writer extends Object implements FileSKVWriter
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_CF_IN_DLG
-
Constructor Summary
Constructors Constructor Description Writer(BlockFileWriter bfw, int blockSize)
Writer(BlockFileWriter bfw, int blockSize, int indexBlockSize, SamplerConfigurationImpl samplerConfig, Sampler sampler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Key key, Value value)
void
close()
DataOutputStream
createMetaStore(String name)
long
getLength()
void
startDefaultLocalityGroup()
void
startNewLocalityGroup(String name, Set<ByteSequence> columnFamilies)
boolean
supportsLocalityGroups()
-
-
-
Field Detail
-
MAX_CF_IN_DLG
public static final int MAX_CF_IN_DLG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Writer
public Writer(BlockFileWriter bfw, int blockSize) throws IOException
- Throws:
IOException
-
Writer
public Writer(BlockFileWriter bfw, int blockSize, int indexBlockSize, SamplerConfigurationImpl samplerConfig, Sampler sampler) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceFileSKVWriter
- Throws:
IOException
-
append
public void append(Key key, Value value) throws IOException
- Specified by:
append
in interfaceFileSKVWriter
- Throws:
IOException
-
createMetaStore
public DataOutputStream createMetaStore(String name) throws IOException
- Specified by:
createMetaStore
in interfaceFileSKVWriter
- Throws:
IOException
-
startNewLocalityGroup
public void startNewLocalityGroup(String name, Set<ByteSequence> columnFamilies) throws IOException
- Specified by:
startNewLocalityGroup
in interfaceFileSKVWriter
- Throws:
IOException
-
startDefaultLocalityGroup
public void startDefaultLocalityGroup() throws IOException
- Specified by:
startDefaultLocalityGroup
in interfaceFileSKVWriter
- Throws:
IOException
-
supportsLocalityGroups
public boolean supportsLocalityGroups()
- Specified by:
supportsLocalityGroups
in interfaceFileSKVWriter
-
getLength
public long getLength() throws IOException
- Specified by:
getLength
in interfaceFileSKVWriter
- Throws:
IOException
-
-