public class InKeyTableWriter extends AbstractTableWriter
TableWriter.InsertModemode, tableDefinition, ydb| Constructor and Description |
|---|
InKeyTableWriter(YarchDatabase 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 InKeyTableWriter(YarchDatabase 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 close()
TableWriterclose in class TableWriterpublic void streamClosed(Stream stream)
Copyright © 2017 Space Applications Services. All rights reserved.