Package com.activeviam.database.internal
Class DatabaseAdapter
java.lang.Object
com.activeviam.database.internal.DatabaseAdapter
- All Implemented Interfaces:
IDatabase
Do not use this class as a shortcut to convert the internal database into a public
IDatabase when you do not have access to the public database. This will prevent casting an
IDatabase object to its explicit class.- Author:
- ActiveViam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the schema of the database.Returns the component responsible for managing streaming from this Database.Gets the latest version in the given branch.getHeads()Returns the latest version of each branch.Returns a component capable of compiling queries to run in the future or registering subscriptions to data.getVersion(long epochId) Retrieves the version at the given epoch if there is one available.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.activeviam.database.api.IDatabase
getMasterHead
-
Constructor Details
-
DatabaseAdapter
-
-
Method Details
-
getCurrentSchema
Description copied from interface:IDatabaseReturns the schema of the database.- Specified by:
getCurrentSchemain interfaceIDatabase
-
getQueryManager
Description copied from interface:IDatabaseReturns a component capable of compiling queries to run in the future or registering subscriptions to data.- Specified by:
getQueryManagerin interfaceIDatabase
-
getDataStreamer
Description copied from interface:IDatabaseReturns the component responsible for managing streaming from this Database.- Specified by:
getDataStreamerin interfaceIDatabase
-
getHeads
Description copied from interface:IDatabaseReturns the latest version of each branch.The keys are the names of the branches.
-
getHead
Description copied from interface:IDatabaseGets the latest version in the given branch. -
getVersion
Description copied from interface:IDatabaseRetrieves the version at the given epoch if there is one available.- Specified by:
getVersionin interfaceIDatabase- Parameters:
epochId- the id of the epoch at which to retrieve the version- Throws:
UnknownEpochException- if this version is no more available
-