public class YarchDatabaseInstance extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addStream(AbstractStream stream)
Adds a stream to the dictionary making it "official"
|
void |
close() |
void |
createTable(TableDefinition def)
add a table to the dictionary throws exception if a table or a stream with the same name already exist
|
void |
dropTable(String tblName) |
StreamSqlResult |
execute(String query,
Object... args) |
TimePartitionSchema |
getDefaultPartitioningSchema() |
String |
getName() |
String |
getRoot()
Returns the root directory for this database instance.
|
StorageEngine |
getStorageEngine(TableDefinition tbldef) |
AbstractStream |
getStream(String name) |
Collection<AbstractStream> |
getStreams() |
TableDefinition |
getTable(String name) |
Collection<TableDefinition> |
getTableDefinitions() |
String |
getTablespaceName()
Tablespaces are used by
RdbStorageEngine to store data. |
TagDb |
getTagDb() |
String |
getYamcsInstance() |
void |
removeStream(String name) |
boolean |
streamOrTableExists(String name) |
public String getTablespaceName()
RdbStorageEngine to store data. Returns the default tablespace name that is used
by all tables and also the parameter archive of this yamcs instancepublic String getName()
public String getYamcsInstance()
public void createTable(TableDefinition def) throws YarchException
def - - table definitionYarchException - - thrown in case a table or a stream with the same name already exists or if there was an error in
creating the tablepublic void addStream(AbstractStream stream) throws YarchException
stream - YarchExceptionpublic TableDefinition getTable(String name)
public boolean streamOrTableExists(String name)
public AbstractStream getStream(String name)
public void dropTable(String tblName) throws YarchException
YarchExceptionpublic void removeStream(String name)
public StorageEngine getStorageEngine(TableDefinition tbldef)
public Collection<AbstractStream> getStreams()
public Collection<TableDefinition> getTableDefinitions()
public String getRoot()
public StreamSqlResult execute(String query, Object... args) throws StreamSqlException, ParseException
StreamSqlExceptionParseExceptionpublic void close()
public TagDb getTagDb() throws YarchException
YarchExceptionpublic TimePartitionSchema getDefaultPartitioningSchema()
Copyright © 2018 Space Applications Services. All rights reserved.