Class GroupConfig
- java.lang.Object
-
- org.elasticsearch.client.transform.transforms.pivot.GroupConfig
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class GroupConfig extends Object implements ToXContentObject
Class describing how to group data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupConfig.Builder-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupConfig.Builderbuilder()booleanequals(Object other)static GroupConfigfromXContent(XContentParser parser)Leniently parse aGroupConfig.Map<String,SingleGroupSource>getGroups()inthashCode()StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Method Detail
-
fromXContent
public static GroupConfig fromXContent(XContentParser parser) throws IOException
Leniently parse aGroupConfig. Parsing is lenient in that unknown fields in the root of the object are ignored. Unknown group typesSingleGroupSource.Typewill cause a parsing error.- Parameters:
parser- The XContent parser- Returns:
- The parsed object
- Throws:
IOException- On parsing error
-
getGroups
public Map<String,SingleGroupSource> getGroups()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
builder
public static GroupConfig.Builder builder()
-
-