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.Serializable
Field Collapsing Specification.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldCollapse.Mode
Mode 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 FieldCollapse
clone()
boolean
equals(java.lang.Object other)
java.lang.String
getField()
Get the field to use for field collapsing.FieldCollapse.Mode
getMode()
Get theFieldCollapse.Mode
for field collapsing.int
getRows()
Get the number of rows to return for each group (including the group leader).java.util.List<Sort>
getSort()
Get the sort specification.int
hashCode()
boolean
isFacet()
Get if collapsed documents should be included in facet computations.void
setFacet(boolean value)
void
setField(java.lang.String value)
Set the field to use for field collapsing.void
setMode(FieldCollapse.Mode value)
Set theFieldCollapse.Mode
for field collapsing.void
setRows(int value)
Set the number of rows to return for each group (including the group leader).void
setSort(Sort... value)
Set the sort.void
setSort(java.lang.String field, Sort.SortOrder order)
Set the field to sort rows in a group.void
setSort(java.util.List<Sort> value)
Set the sort specification.java.lang.String
toString()
static FieldCollapse
valueOf(java.lang.Object value)
static FieldCollapse
valueOf(java.lang.String value)
-
-
-
Method Detail
-
getMode
public FieldCollapse.Mode getMode()
Get theFieldCollapse.Mode
for field collapsing.
-
setMode
public void setMode(FieldCollapse.Mode value)
Set theFieldCollapse.Mode
for 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
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
valueOf
public static FieldCollapse valueOf(java.lang.Object value)
-
valueOf
public static FieldCollapse valueOf(java.lang.String value)
-
-