public class RdbTableWriter extends TableWriter
TableWriter.InsertModemode, tableDefinition, ydb| Constructor and Description |
|---|
RdbTableWriter(Tablespace tablespace,
YarchDatabaseInstance ydb,
TableDefinition tableDefinition,
TableWriter.InsertMode mode,
RdbPartitionManager pm) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHistogram(YRDB db,
Tuple t) |
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) |
getTableDefinitionpublic RdbTableWriter(Tablespace tablespace, YarchDatabaseInstance ydb, TableDefinition tableDefinition, TableWriter.InsertMode mode, RdbPartitionManager pm)
public RdbPartition getDbPartition(Tuple t) throws IOException
t - 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)
protected void addHistogram(YRDB db, Tuple t) throws IOException, org.rocksdb.RocksDBException
IOExceptionorg.rocksdb.RocksDBExceptionCopyright © 2018 Space Applications Services. All rights reserved.