|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IStoreQueryEngine
A IStoreQueryEngine provides indexing and query capabilities
for IStoreBindings.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.neeve.query.QueryEngine |
|---|
QueryEngine.BackgroundIndexingPolicy |
| Method Summary | ||
|---|---|---|
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. |
|
|
getField(Class<?> objectType,
String fieldPath)
Gets a field for the given recordType and field path. |
|
|
getField(Class<?> objectType,
String fieldPath,
Class<T> fieldType,
Class<?>... pathTypes)
Gets a field for the given recordType and field path. |
|
|
getField(String columnDefinition)
Parses a field using the query engine's parser. |
|
|
getField(String objectTypeName,
String fieldPath)
Gets a field from the given type name and fieldPath. |
|
| Methods inherited from interface com.neeve.query.QueryEngine |
|---|
addRepository, close, createIndex, createIndex, createIndex, dropIndex, dropIndex, execute, executeStatement, getFetchRatioThreshold, getIndexedFields, getRepositories, removeRepository, setAutoIndexing, setAutoIndexLimit, setBackgroundIndexingPolicy, setDefaultIndexing, setDefaultPackage, setFetchRatioThreshold, setQueryStatGeneration, setSortAreaInMemoryCardinality, waitForBackgroundIndexing |
| Method Detail |
|---|
IStoreQueryResultSet execute(String xsql)
QueryEngineQueryEngine.
execute in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>xsql - The SELECT statement to execute.
QueryResult.IStoreQuery createQuery(String xsql)
QueryEngineQuery corresponding to the provided SELECT statement.
createQuery in interface QueryEngine<com.eaio.uuid.UUID,IStoreObject>xsql - The query stringIStoreQuery createQuery()
QueryEngineQuery 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 name
QueryException - 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)
IdxFieldResolverIdxFieldResolver'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)
IdxFieldResolverIdxFieldResolver'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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||