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, wait
Methods inherited from interface com.activeviam.database.api.IDatabase
getMasterHead
-
Constructor Details
-
Method Details
-
getCurrentSchema
Description copied from interface:IDatabase
Returns the schema of the database.- Specified by:
getCurrentSchema
in interfaceIDatabase
-
getQueryManager
Description copied from interface:IDatabase
Returns a component capable of compiling queries to run in the future or registering subscriptions to data.- Specified by:
getQueryManager
in interfaceIDatabase
-
getDataStreamer
Description copied from interface:IDatabase
Returns the component responsible for managing streaming from this Database.- Specified by:
getDataStreamer
in interfaceIDatabase
-
getHeads
Description copied from interface:IDatabase
Returns the latest version of each branch.The keys are the names of the branches.
-
getHead
Description copied from interface:IDatabase
Gets the latest version in the given branch. -
getVersion
Description copied from interface:IDatabase
Retrieves the version at the given epoch if there is one available.- Specified by:
getVersion
in interfaceIDatabase
- Parameters:
epochId
- the id of the epoch at which to retrieve the version- Throws:
UnknownEpochException
- if this version is no more available
-