public static class RFile.Writer extends Object implements FileSKVWriter
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CF_IN_DLG |
Constructor and Description |
---|
Writer(BCFile.Writer bfw,
int blockSize) |
Writer(BCFile.Writer bfw,
int blockSize,
int indexBlockSize,
SamplerConfigurationImpl samplerConfig,
Sampler sampler) |
Modifier and Type | Method and 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() |
public static final int MAX_CF_IN_DLG
public Writer(BCFile.Writer bfw, int blockSize) throws IOException
IOException
public Writer(BCFile.Writer bfw, int blockSize, int indexBlockSize, SamplerConfigurationImpl samplerConfig, Sampler sampler) throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface FileSKVWriter
IOException
public void append(Key key, Value value) throws IOException
append
in interface FileSKVWriter
IOException
public DataOutputStream createMetaStore(String name) throws IOException
createMetaStore
in interface FileSKVWriter
IOException
public void startNewLocalityGroup(String name, Set<ByteSequence> columnFamilies) throws IOException
startNewLocalityGroup
in interface FileSKVWriter
IOException
public void startDefaultLocalityGroup() throws IOException
startDefaultLocalityGroup
in interface FileSKVWriter
IOException
public boolean supportsLocalityGroups()
supportsLocalityGroups
in interface FileSKVWriter
public long getLength() throws IOException
getLength
in interface FileSKVWriter
IOException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.