public class RdbStorageEngine extends Object implements StorageEngine
| Constructor and Description |
|---|
RdbStorageEngine(YarchDatabase ydb) |
RdbStorageEngine(YarchDatabase ydb,
boolean ignoreVersionIncompatibility) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(TableDefinition def)
Create a new table based on definition.
|
void |
dropTable(TableDefinition tbl)
Drop the table (removing all files)
|
Iterator<HistogramRecord> |
getHistogramIterator(TableDefinition tblDef,
String columnName,
TimeInterval interval,
long mergeTime) |
static RdbStorageEngine |
getInstance(YarchDatabase ydb) |
RdbPartitionManager |
getPartitionManager(TableDefinition tdef) |
TagDb |
getTagDb() |
void |
loadTable(TableDefinition tbl)
Loads a table from the disk - called at startup.
|
AbstractStream |
newTableReaderStream(TableDefinition tbl,
boolean ascending,
boolean follow)
Creates a new table reader
|
TableWriter |
newTableWriter(TableDefinition tblDef,
TableWriter.InsertMode insertMode)
Creates a new table writer
|
static void |
removeInstance(YarchDatabase ydb)
Called from unit tests to cleanup before the next test
|
void |
setIgnoreVersionIncompatibility(boolean b)
set to ignore version incompatibility - only used from the version upgrading functions to allow loading old tables.
|
void |
shutdown()
Called from Unit tests to cleanup before the next test
|
public RdbStorageEngine(YarchDatabase ydb, boolean ignoreVersionIncompatibility) throws YarchException
YarchExceptionpublic RdbStorageEngine(YarchDatabase ydb) throws YarchException
YarchExceptionpublic void loadTable(TableDefinition tbl) throws YarchException
StorageEngineloadTable in interface StorageEngineYarchExceptionpublic void dropTable(TableDefinition tbl) throws YarchException
StorageEnginedropTable in interface StorageEngineYarchExceptionpublic TableWriter newTableWriter(TableDefinition tblDef, TableWriter.InsertMode insertMode) throws YarchException
StorageEnginenewTableWriter in interface StorageEngineYarchExceptionpublic AbstractStream newTableReaderStream(TableDefinition tbl, boolean ascending, boolean follow)
StorageEnginenewTableReaderStream in interface StorageEnginepublic void createTable(TableDefinition def)
StorageEnginecreateTable in interface StorageEnginepublic static RdbStorageEngine getInstance(YarchDatabase ydb)
public RdbPartitionManager getPartitionManager(TableDefinition tdef)
public TagDb getTagDb() throws YarchException
getTagDb in interface StorageEngineYarchExceptionpublic void shutdown()
public static void removeInstance(YarchDatabase ydb)
ydb - public void setIgnoreVersionIncompatibility(boolean b)
b - public Iterator<HistogramRecord> getHistogramIterator(TableDefinition tblDef, String columnName, TimeInterval interval, long mergeTime) throws YarchException
getHistogramIterator in interface StorageEngineYarchExceptionCopyright © 2017 Space Applications Services. All rights reserved.