public class FieldCollapse extends Object implements Cloneable, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FieldCollapse.Mode
Mode for performing field collapsing.
|
Constructor and Description |
---|
FieldCollapse() |
FieldCollapse(String field) |
Modifier and Type | Method and Description |
---|---|
FieldCollapse |
clone() |
boolean |
equals(Object other) |
String |
getField()
Get the field to use for field collapsing.
|
FieldCollapse.Mode |
getMode()
Get the
FieldCollapse.Mode for field collapsing. |
int |
getRows()
Get the number of rows to return for each group (including the group leader).
|
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(String value)
Set the field to use for field collapsing.
|
void |
setMode(FieldCollapse.Mode value)
Set the
FieldCollapse.Mode for field collapsing. |
void |
setRows(int value)
Set the number of rows to return for each group (including the group leader).
|
void |
setSort(List<Sort> value)
Set the sort specification.
|
void |
setSort(Sort... value)
Set the sort.
|
void |
setSort(String field,
Sort.SortOrder order)
Set the field to sort rows in a group.
|
String |
toString() |
static FieldCollapse |
valueOf(Object value) |
static FieldCollapse |
valueOf(String value) |
public FieldCollapse()
public FieldCollapse(String field)
public FieldCollapse.Mode getMode()
FieldCollapse.Mode
for field collapsing.public void setMode(FieldCollapse.Mode value)
FieldCollapse.Mode
for field collapsing.public String getField()
This field must be a single value joinable field.
public void setField(String value)
This field must be a single value joinable field.
public List<Sort> getSort()
If null
the default ordering will be used.
public void setSort(Sort... value)
public void setSort(String field, Sort.SortOrder order)
public int getRows()
public void setRows(int value)
public boolean isFacet()
This is only relevant for FieldCollapse.Mode.DEFAULT
mode. 2-D field collapsing will always
compute facets over all documents matching the search.
public void setFacet(boolean value)
public FieldCollapse clone()
public static FieldCollapse valueOf(Object value)
public static FieldCollapse valueOf(String value)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.