public class CfTableWriter extends AbstractTableWriter
TableWriter.InsertModemode, tableDefinition, ydb| Constructor and Description |
|---|
CfTableWriter(YarchDatabaseInstance ydb,
TableDefinition tableDefinition,
TableWriter.InsertMode mode,
RdbPartitionManager pm) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close histogram db and any open resources
|
RdbPartition |
getDbPartition(Tuple t)
get the filename where the tuple would fit (can be a partition)
|
void |
onTuple(Stream stream,
Tuple t) |
void |
streamClosed(Stream stream) |
addHistogram, getHistogramColumnFamilyNamegetTableDefinitionpublic CfTableWriter(YarchDatabaseInstance ydb, TableDefinition tableDefinition, TableWriter.InsertMode mode, RdbPartitionManager pm) throws IOException
IOExceptionpublic RdbPartition getDbPartition(Tuple t) throws IOException
getDbPartition in class AbstractTableWritert - IOException - if there was an error while creating the directories where
the file should be locatedpublic void streamClosed(Stream stream)
public void close()
TableWriterclose in class TableWriterCopyright © 2018 Space Applications Services. All rights reserved.