public interface IEngineContext
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this context object.
|
IBaseIndex |
getBaseIndex()
Returns the base index.
|
IQueryRuntimeContext |
getQueryRuntimeContext()
Provides instance model information for pattern matching.
|
IBaseIndex getBaseIndex()
ViatraQueryRuntimeException
- if the base index cannot be accessedvoid dispose()
java.lang.IllegalStateException
- if there are any active listeners to the underlying indexIQueryRuntimeContext getQueryRuntimeContext()
Implementors note: must be reentrant. If called while index loading is already in progress, must return the single runtime context instance that will eventually index the model. When the runtime query context is invoked in such a case, incomplete indexes are tolerable, but change notifications must be correctly provided as loading commences.
ViatraQueryRuntimeException
- if the runtime context cannot be initialized