com.neeve.query.index
Interface IdxFieldResolver<RECORD>

Type Parameters:
RECORD - All fields returned by the registry will have field paths relative to this class or one of it's subtypes.
All Known Subinterfaces:
IStoreQueryEngine, QueryEngine<ID,REC>, RogLogQueryEngine

public interface IdxFieldResolver<RECORD>

An IdxFieldResolver provides access to fields for a given record type. All fields returned by the


Method Summary
<T> IdxField<RECORD,T>
getField(Class<?> recordType, String fieldPath)
          Gets a field for the given recordType and field path.
<T> IdxField<RECORD,T>
getField(Class<?> recordType, String fieldPath, Class<T> fieldType, Class<?>... pathTypes)
          Gets a field for the given recordType and field path.
<T> IdxField<RECORD,T>
getField(String recordTypeName, String fieldPath)
          Gets a field from the given type name and fieldPath.
 

Method Detail

getField

<T> IdxField<RECORD,T> getField(String recordTypeName,
                                String fieldPath)
Gets a field from the given type name and fieldPath.

Parameters:
recordTypeName - The typeName of the log entry's object.
fieldPath - The bean path of the field.
Returns:
The resolved field.

getField

<T> IdxField<RECORD,T> getField(Class<?> recordType,
                                String fieldPath)
Gets a field for the given recordType and field path. Typically the recordType must be a subclass of the the IdxFieldResolver's RECORD type, but it is possible that some implementation can infer a field of RECORD type based on an alternative type.

Parameters:
recordType - The class of the corresponding record.
fieldPath - The bean path of the field.
Returns:
The resolved field.

getField

<T> IdxField<RECORD,T> getField(Class<?> recordType,
                                String fieldPath,
                                Class<T> fieldType,
                                Class<?>... pathTypes)
Gets a field for the given recordType and field path. Typically the recordType must be a subclass of the the IdxFieldResolver's RECORD type, but it is possible that some implementation can infer a field of RECORD type based on an alternative type.

Parameters:
recordType - 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.
Returns:
The resolved field.


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.