public class Aggregation
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Aggregation.Function |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
aggregationField |
static java.lang.String |
DEFAULT_FUNCTION |
java.lang.String |
expr |
java.lang.String |
function |
java.lang.String |
separator |
Constructor and Description |
---|
Aggregation() |
Aggregation(Aggregation o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Aggregation.
|
static Aggregation |
fromString(java.lang.String s)
String representation of this Aggregation.
|
java.lang.String |
getAggregationField() |
java.lang.String |
getExpr()
Field to compute on the grouped hits.
|
java.lang.String |
getFunction()
Aggregation function to apply on the specified expression.
|
Aggregation.Function |
getFunctionAsEnum()
Aggregation function to apply on the specified expression.
|
java.lang.String |
getSeparator()
Character to separate concatenated strings.
|
static boolean |
isA(java.lang.String str,
Aggregation.Function item) |
static boolean |
isOneOf(java.lang.String str,
Aggregation.Function... items) |
Aggregation |
makeCopy()
Creates and returns a deep copy of this Aggregation.
|
static Aggregation |
readFrom(java.io.InputStream is)
Read this Aggregation from an XML fragment.
|
void |
setAggregationField(java.lang.String aggregationField) |
void |
setExpr(java.lang.String expr)
Field to compute on the grouped hits.
|
void |
setFunction(Aggregation.Function item)
Aggregation function to apply on the specified expression.
|
void |
setFunction(java.lang.String function)
Aggregation function to apply on the specified expression.
|
void |
setSeparator(java.lang.String separator)
Character to separate concatenated strings.
|
java.lang.String |
toString()
String representation of this Aggregation.
|
Aggregation |
withAggregationField(java.lang.String aggregationField) |
Aggregation |
withExpr(java.lang.String expr) |
Aggregation |
withFunction(java.lang.String function) |
Aggregation |
withSeparator(java.lang.String separator) |
void |
writeTo(java.io.OutputStream os)
Write this Aggregation as an XML fragment
|
public java.lang.String expr
public java.lang.String aggregationField
public java.lang.String function
public static final java.lang.String DEFAULT_FUNCTION
public java.lang.String separator
public Aggregation()
public Aggregation(Aggregation o)
public static boolean isA(java.lang.String str, Aggregation.Function item)
public static boolean isOneOf(java.lang.String str, Aggregation.Function... items)
public void setFunction(Aggregation.Function item)
public Aggregation.Function getFunctionAsEnum()
public void setExpr(java.lang.String expr)
public java.lang.String getExpr()
public Aggregation withExpr(java.lang.String expr)
public void setAggregationField(java.lang.String aggregationField)
public java.lang.String getAggregationField()
public Aggregation withAggregationField(java.lang.String aggregationField)
public void setFunction(java.lang.String function)
public java.lang.String getFunction()
public Aggregation withFunction(java.lang.String function)
public void setSeparator(java.lang.String separator)
public java.lang.String getSeparator()
public Aggregation withSeparator(java.lang.String separator)
public Aggregation makeCopy()
public static Aggregation readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static Aggregation fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.