Package com.attivio.sdk.search
Class FieldCollapse
- java.lang.Object
-
- com.attivio.sdk.search.FieldCollapse
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class FieldCollapse extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableField Collapsing Specification.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldCollapse.ModeMode for performing field collapsing.
-
Constructor Summary
Constructors Constructor Description FieldCollapse()FieldCollapse(java.lang.String field)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldCollapseclone()booleanequals(java.lang.Object other)java.lang.StringgetField()Get the field to use for field collapsing.FieldCollapse.ModegetMode()Get theFieldCollapse.Modefor field collapsing.intgetRows()Get the number of rows to return for each group (including the group leader).java.util.List<Sort>getSort()Get the sort specification.inthashCode()booleanisFacet()Get if collapsed documents should be included in facet computations.voidsetFacet(boolean value)voidsetField(java.lang.String value)Set the field to use for field collapsing.voidsetMode(FieldCollapse.Mode value)Set theFieldCollapse.Modefor field collapsing.voidsetRows(int value)Set the number of rows to return for each group (including the group leader).voidsetSort(Sort... value)Set the sort.voidsetSort(java.lang.String field, Sort.SortOrder order)Set the field to sort rows in a group.voidsetSort(java.util.List<Sort> value)Set the sort specification.java.lang.StringtoString()static FieldCollapsevalueOf(java.lang.Object value)static FieldCollapsevalueOf(java.lang.String value)
-
-
-
Method Detail
-
getMode
public FieldCollapse.Mode getMode()
Get theFieldCollapse.Modefor field collapsing.
-
setMode
public void setMode(FieldCollapse.Mode value)
Set theFieldCollapse.Modefor field collapsing.
-
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
nullthe 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.DEFAULTmode. 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:
clonein classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueOf
public static FieldCollapse valueOf(java.lang.Object value)
-
valueOf
public static FieldCollapse valueOf(java.lang.String value)
-
-