public interface IStoreQueryEngine extends QueryEngine<com.eaio.uuid.UUID,IStoreObject>
IStoreQueryEngine
provides indexing and query capabilities
for IStoreBinding
s.QueryEngine.BackgroundIndexingPolicy
Modifier and Type | Method and Description |
---|---|
IStoreQuery |
createQuery()
Creates an empty
Query that can be executed against this QueryEngine . |
IStoreQuery |
createQuery(String xsql)
Creates a
Query corresponding to the provided SELECT statement. |
IStoreQueryResultSet |
execute(IStoreQuery query)
Executes the given log query against the logs added to this
IStoreQueryEngine . |
IStoreQueryResultSet |
execute(String xsql)
Executes an xpql query against this
QueryEngine . |
<T> IStoreField<T> |
getField(Class<?> objectType,
String fieldPath)
Gets a field for the given recordType and field path.
|
<T> IStoreField<T> |
getField(Class<?> objectType,
String fieldPath,
Class<T> fieldType,
Class<?>... pathTypes)
Gets a field for the given recordType and field path.
|
<T> IStoreField<T> |
getField(String columnDefinition)
Parses a field using the query engine's parser.
|
<T> IStoreField<T> |
getField(String objectTypeName,
String fieldPath)
Gets a field from the given type name and fieldPath.
|
addRepository, close, createIndex, createIndex, createIndex, dropIndex, dropIndex, execute, executeStatement, getFetchRatioThreshold, getIndexedFields, getNonUniqueIndex, getRepositories, getUniqueIndex, removeRepository, setAutoIndexing, setAutoIndexLimit, setBackgroundIndexingPolicy, setDefaultIndexing, setDefaultPackage, setFetchRatioThreshold, setQueryStatGeneration, setSortAreaInMemoryCardinality, waitForBackgroundIndexing
IStoreQueryResultSet execute(String xsql)
QueryEngine
QueryEngine
.execute
in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>
xsql
- The SELECT statement to execute.QueryResult
.IStoreQuery createQuery(String xsql)
QueryEngine
Query
corresponding to the provided SELECT statement.createQuery
in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>
xsql
- The query stringIStoreQuery createQuery()
QueryEngine
Query
that can be executed against this QueryEngine
.createQuery
in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>
Query
.IStoreQueryResultSet execute(IStoreQuery query)
IStoreQueryEngine
.query
- The query to execute.IStoreQueryResultSet
results.<T> IStoreField<T> getField(String columnDefinition) throws QueryException, QueryParseException
QueryEngine
getField
in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>
columnDefinition
- A field.QueryParseException
- if the columnDefinition can't be parsed as a valid column nameQueryException
- if there is an error resolving the field<T> IStoreField<T> getField(String objectTypeName, String fieldPath)
IdxFieldResolver
getField
in interface IdxFieldResolver<IStoreObject>
objectTypeName
- The typeName of the log entry's object.fieldPath
- The bean path of the field.<T> IStoreField<T> getField(Class<?> objectType, String fieldPath)
IdxFieldResolver
IdxFieldResolver
's
RECORD type, but it is possible that some implementation can infer a field
of RECORD type based on an alternative type.getField
in interface IdxFieldResolver<IStoreObject>
objectType
- The class of the corresponding record.fieldPath
- The bean path of the field.<T> IStoreField<T> getField(Class<?> objectType, String fieldPath, Class<T> fieldType, Class<?>... pathTypes)
IdxFieldResolver
IdxFieldResolver
's
RECORD type, but it is possible that some implementation can infer a field
of RECORD type based on an alternative type.getField
in interface IdxFieldResolver<IStoreObject>
objectType
- The class of the corresponding record.fieldPath
- The bean path of the field.fieldType
- Indicates the required type of the field.pathTypes
- For cases where types in the field path are ambiguous, this allows
specifying specific types for the intermediate paths.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.