Search in sources :

Example 1 with AdvanceFulltextQueryIndex

use of org.apache.jackrabbit.oak.spi.query.QueryIndex.AdvanceFulltextQueryIndex in project jackrabbit-oak by apache.

the class AggregateIndexProvider method getQueryIndexes.

@Override
@Nonnull
public List<? extends QueryIndex> getQueryIndexes(NodeState state) {
    List<? extends QueryIndex> list = baseProvider.getQueryIndexes(state);
    List<QueryIndex> newList = new ArrayList<QueryIndex>();
    for (QueryIndex index : list) {
        if (index instanceof AdvanceFulltextQueryIndex) {
            index = new AggregateIndex((AdvanceFulltextQueryIndex) index);
        }
        newList.add(index);
    }
    return newList;
}
Also used : AdvanceFulltextQueryIndex(org.apache.jackrabbit.oak.spi.query.QueryIndex.AdvanceFulltextQueryIndex) ArrayList(java.util.ArrayList) QueryIndex(org.apache.jackrabbit.oak.spi.query.QueryIndex) AdvanceFulltextQueryIndex(org.apache.jackrabbit.oak.spi.query.QueryIndex.AdvanceFulltextQueryIndex) Nonnull(javax.annotation.Nonnull)

Aggregations

ArrayList (java.util.ArrayList)1 Nonnull (javax.annotation.Nonnull)1 QueryIndex (org.apache.jackrabbit.oak.spi.query.QueryIndex)1 AdvanceFulltextQueryIndex (org.apache.jackrabbit.oak.spi.query.QueryIndex.AdvanceFulltextQueryIndex)1