Class LuceneQueryParsingResult<TypeMetadata>
- java.lang.Object
-
- org.infinispan.query.dsl.embedded.impl.LuceneQueryParsingResult<TypeMetadata>
-
public final class LuceneQueryParsingResult<TypeMetadata> extends Object
- Since:
- 9.0
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getProjections()Returns the projections of the parsed query, represented as dot-separated paths to fields of embedded entities.org.apache.lucene.search.QuerygetQuery()Returns the created Lucene query.org.apache.lucene.search.SortgetSort()Returns the optional Lucene sort specification.TypeMetadatagetTargetEntityMetadata()Returns the entity metadata (usually a Class) resolved from the original entity name.StringgetTargetEntityName()Returns the original entity name from the query.StringtoString()
-
-
-
Method Detail
-
getQuery
public org.apache.lucene.search.Query getQuery()
Returns the created Lucene query.
-
getTargetEntityName
public String getTargetEntityName()
Returns the original entity name from the query.
-
getTargetEntityMetadata
public TypeMetadata getTargetEntityMetadata()
Returns the entity metadata (usually a Class) resolved from the original entity name.
-
getProjections
public String[] getProjections()
Returns the projections of the parsed query, represented as dot-separated paths to fields of embedded entities.- Returns:
- an array with the projections of the parsed query or
nullif the query has no projections
-
getSort
public org.apache.lucene.search.Sort getSort()
Returns the optional Lucene sort specification.- Returns:
- the
Sortobject ornullif the query string does not specify sorting
-
-