Class GroupConfig
- java.lang.Object
-
- org.elasticsearch.client.transform.transforms.pivot.GroupConfig
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class GroupConfig extends java.lang.Object implements ToXContentObject
Class describing how to group data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupConfig.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
Modifier and Type Method Description static GroupConfig.Builder
builder()
boolean
equals(java.lang.Object other)
static GroupConfig
fromXContent(XContentParser parser)
Leniently parse aGroupConfig
.java.util.Map<java.lang.String,SingleGroupSource>
getGroups()
int
hashCode()
java.lang.String
toString()
XContentBuilder
toXContent(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 java.io.IOException
Leniently parse aGroupConfig
. Parsing is lenient in that unknown fields in the root of the object are ignored. Unknown group typesSingleGroupSource.Type
will cause a parsing error.- Parameters:
parser
- The XContent parser- Returns:
- The parsed object
- Throws:
java.io.IOException
- On parsing error
-
getGroups
public java.util.Map<java.lang.String,SingleGroupSource> getGroups()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
builder
public static GroupConfig.Builder builder()
-
-