Class DataFrameTransformConfig
- java.lang.Object
-
- org.elasticsearch.client.dataframe.transforms.DataFrameTransformConfig
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class DataFrameTransformConfig extends java.lang.Object implements ToXContentObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataFrameTransformConfig.Builder-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldDESCRIPTIONstatic ParseFieldDESTstatic ParseFieldIDstatic ConstructingObjectParser<DataFrameTransformConfig,java.lang.Void>PARSERstatic ParseFieldPIVOT_TRANSFORMstatic ParseFieldSOURCE-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description static DataFrameTransformConfig.Builderbuilder()booleanequals(java.lang.Object other)static DataFrameTransformConfigforPreview(SourceConfig source, PivotConfig pivotConfig)Helper method for previewing a data frame transform configuration The DataFrameTransformConfig returned from this method should only be used for previewing the resulting data.static DataFrameTransformConfigfromXContent(XContentParser parser)java.lang.StringgetDescription()DestConfiggetDestination()java.lang.StringgetId()PivotConfiggetPivotConfig()SourceConfiggetSource()inthashCode()java.lang.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
-
-
-
-
Field Detail
-
ID
public static final ParseField ID
-
SOURCE
public static final ParseField SOURCE
-
DEST
public static final ParseField DEST
-
DESCRIPTION
public static final ParseField DESCRIPTION
-
PIVOT_TRANSFORM
public static final ParseField PIVOT_TRANSFORM
-
PARSER
public static final ConstructingObjectParser<DataFrameTransformConfig,java.lang.Void> PARSER
-
-
Method Detail
-
fromXContent
public static DataFrameTransformConfig fromXContent(XContentParser parser)
-
forPreview
public static DataFrameTransformConfig forPreview(SourceConfig source, PivotConfig pivotConfig)
Helper method for previewing a data frame transform configuration The DataFrameTransformConfig returned from this method should only be used for previewing the resulting data. A new, valid, DataFrameTransformConfig with an appropriate destination and ID will have to be constructed to create the transform.- Parameters:
source- Source configuration for gathering the datapivotConfig- Pivot config to preview- Returns:
- A DataFrameTransformConfig to preview, NOTE it will have a
nullid, destination and index.
-
getId
public java.lang.String getId()
-
getSource
public SourceConfig getSource()
-
getDestination
public DestConfig getDestination()
-
getPivotConfig
public PivotConfig getPivotConfig()
-
getDescription
@Nullable public java.lang.String getDescription()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static DataFrameTransformConfig.Builder builder()
-
-