Class TransformConfig
java.lang.Object
org.elasticsearch.client.transform.transforms.TransformConfig
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class TransformConfig
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransformConfig.Builder -
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldCREATE_TIMEstatic org.elasticsearch.common.ParseFieldDESCRIPTIONstatic org.elasticsearch.common.ParseFieldDESTstatic org.elasticsearch.common.ParseFieldFREQUENCYstatic org.elasticsearch.common.ParseFieldIDstatic org.elasticsearch.common.xcontent.ConstructingObjectParser<TransformConfig,java.lang.Void>PARSERstatic org.elasticsearch.common.ParseFieldPIVOT_TRANSFORMstatic org.elasticsearch.common.ParseFieldSETTINGSstatic org.elasticsearch.common.ParseFieldSOURCEstatic org.elasticsearch.common.ParseFieldSYNCstatic org.elasticsearch.common.ParseFieldVERSION -
Method Summary
Modifier and Type Method Description static TransformConfig.Builderbuilder()booleanequals(java.lang.Object other)static TransformConfigforPreview(SourceConfig source, PivotConfig pivotConfig)Helper method for previewing a transform configuration The TransformConfig returned from this method should only be used for previewing the resulting data.static TransformConfigfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.time.InstantgetCreateTime()java.lang.StringgetDescription()DestConfiggetDestination()org.elasticsearch.common.unit.TimeValuegetFrequency()java.lang.StringgetId()PivotConfiggetPivotConfig()SettingsConfiggetSettings()SourceConfiggetSource()SyncConfiggetSyncConfig()org.elasticsearch.VersiongetVersion()inthashCode()java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Field Details
-
ID
public static final org.elasticsearch.common.ParseField ID -
SOURCE
public static final org.elasticsearch.common.ParseField SOURCE -
DEST
public static final org.elasticsearch.common.ParseField DEST -
FREQUENCY
public static final org.elasticsearch.common.ParseField FREQUENCY -
DESCRIPTION
public static final org.elasticsearch.common.ParseField DESCRIPTION -
SYNC
public static final org.elasticsearch.common.ParseField SYNC -
SETTINGS
public static final org.elasticsearch.common.ParseField SETTINGS -
VERSION
public static final org.elasticsearch.common.ParseField VERSION -
CREATE_TIME
public static final org.elasticsearch.common.ParseField CREATE_TIME -
PIVOT_TRANSFORM
public static final org.elasticsearch.common.ParseField PIVOT_TRANSFORM -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<TransformConfig,java.lang.Void> PARSER
-
-
Method Details
-
fromXContent
public static TransformConfig fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
forPreview
Helper method for previewing a transform configuration The TransformConfig returned from this method should only be used for previewing the resulting data. A new, valid, TransformConfig 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 TransformConfig to preview, NOTE it will have a
nullid, destination and index.
-
getId
public java.lang.String getId() -
getSource
-
getDestination
-
getFrequency
public org.elasticsearch.common.unit.TimeValue getFrequency() -
getSyncConfig
-
getPivotConfig
-
getVersion
public org.elasticsearch.Version getVersion() -
getCreateTime
public java.time.Instant getCreateTime() -
getDescription
@Nullable public java.lang.String getDescription() -
getSettings
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- 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
-