Class FieldCollapse

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class FieldCollapse
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    Field Collapsing Specification.
    See Also:
    Serialized Form
    • Constructor Detail

      • FieldCollapse

        public FieldCollapse()
      • FieldCollapse

        public FieldCollapse​(java.lang.String field)
    • Method Detail

      • getField

        public java.lang.String getField()
        Get the field to use for field collapsing.

        This field must be a single value joinable field.

      • setField

        public void setField​(java.lang.String value)
        Set the field to use for field collapsing.

        This field must be a single value joinable field.

      • getSort

        public java.util.List<Sort> getSort()
        Get the sort specification.

        If null the default ordering will be used.

      • setSort

        public void setSort​(java.util.List<Sort> value)
        Set the sort specification.
      • setSort

        public void setSort​(Sort... value)
        Set the sort.
      • setSort

        public void setSort​(java.lang.String field,
                            Sort.SortOrder order)
        Set the field to sort rows in a group.
      • getRows

        public int getRows()
        Get the number of rows to return for each group (including the group leader).
      • setRows

        public void setRows​(int value)
        Set the number of rows to return for each group (including the group leader).
      • isFacet

        public boolean isFacet()
        Get if collapsed documents should be included in facet computations.

        This is only relevant for FieldCollapse.Mode.DEFAULT mode. 2-D field collapsing will always compute facets over all documents matching the search.

      • setFacet

        public void setFacet​(boolean value)
      • clone

        public FieldCollapse clone()
        Overrides:
        clone in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • valueOf

        public static FieldCollapse valueOf​(java.lang.Object value)
      • valueOf

        public static FieldCollapse valueOf​(java.lang.String value)