Class FacetResult
- java.lang.Object
-
- org.apache.jackrabbit.oak.query.facet.FacetResult
-
public class FacetResult extends java.lang.Object
A facet result is a wrapper forQueryResult
capable of returning information about facets stored in the query resultRow
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FacetResult.Facet
A query result facet, composed by its label and count.static interface
FacetResult.FacetResultRow
-
Constructor Summary
Constructors Constructor Description FacetResult(java.lang.String[] columnNames, FacetResult.FacetResultRow... rows)
FacetResult(QueryResult queryResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
asColumnToFacetJsonMap()
@NotNull java.util.Set<java.lang.String>
getDimensions()
@Nullable java.util.List<FacetResult.Facet>
getFacets(@NotNull java.lang.String dimension)
-
-
-
Constructor Detail
-
FacetResult
public FacetResult(QueryResult queryResult)
-
FacetResult
public FacetResult(java.lang.String[] columnNames, FacetResult.FacetResultRow... rows)
-
-
Method Detail
-
asColumnToFacetJsonMap
public java.util.Map<java.lang.String,java.lang.String> asColumnToFacetJsonMap()
-
getDimensions
@NotNull public @NotNull java.util.Set<java.lang.String> getDimensions()
-
getFacets
@Nullable public @Nullable java.util.List<FacetResult.Facet> getFacets(@NotNull @NotNull java.lang.String dimension)
-
-