Package org.apache.accumulo.core.summary
Class SummaryWriter
- java.lang.Object
-
- org.apache.accumulo.core.summary.SummaryWriter
-
- All Implemented Interfaces:
AutoCloseable
,FileSKVWriter
public class SummaryWriter extends Object implements FileSKVWriter
-
-
Method Summary
All Methods Static 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()
static FileSKVWriter
wrap(FileSKVWriter writer, AccumuloConfiguration tableConfig, boolean useAccumuloStart)
void
writeConfig(SummarizerConfiguration conf, DataOutputStream dos)
-
-
-
Method Detail
-
supportsLocalityGroups
public boolean supportsLocalityGroups()
- Specified by:
supportsLocalityGroups
in interfaceFileSKVWriter
-
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
-
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
-
writeConfig
public void writeConfig(SummarizerConfiguration conf, DataOutputStream dos) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceFileSKVWriter
- Throws:
IOException
-
getLength
public long getLength() throws IOException
- Specified by:
getLength
in interfaceFileSKVWriter
- Throws:
IOException
-
wrap
public static FileSKVWriter wrap(FileSKVWriter writer, AccumuloConfiguration tableConfig, boolean useAccumuloStart)
-
-