Class TransformConfig
java.lang.Object
org.elasticsearch.client.transform.transforms.TransformConfig
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ConstructingObjectParser<TransformConfig,
Void> static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransformConfig.Builder
builder()
boolean
static TransformConfig
forPreview
(SourceConfig source, LatestConfig latestConfig) Helper method for previewing a transform configuration The TransformConfig returned from this method should only be used for previewing the resulting data.static TransformConfig
forPreview
(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 TransformConfig
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) org.elasticsearch.core.TimeValue
getId()
int
hashCode()
toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
ID
public static final org.elasticsearch.xcontent.ParseField ID -
SOURCE
public static final org.elasticsearch.xcontent.ParseField SOURCE -
DEST
public static final org.elasticsearch.xcontent.ParseField DEST -
FREQUENCY
public static final org.elasticsearch.xcontent.ParseField FREQUENCY -
DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField DESCRIPTION -
SYNC
public static final org.elasticsearch.xcontent.ParseField SYNC -
SETTINGS
public static final org.elasticsearch.xcontent.ParseField SETTINGS -
METADATA
public static final org.elasticsearch.xcontent.ParseField METADATA -
VERSION
public static final org.elasticsearch.xcontent.ParseField VERSION -
CREATE_TIME
public static final org.elasticsearch.xcontent.ParseField CREATE_TIME -
RETENTION_POLICY
public static final org.elasticsearch.xcontent.ParseField RETENTION_POLICY -
PIVOT_TRANSFORM
public static final org.elasticsearch.xcontent.ParseField PIVOT_TRANSFORM -
LATEST_TRANSFORM
public static final org.elasticsearch.xcontent.ParseField LATEST_TRANSFORM -
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<TransformConfig,Void> PARSER
-
-
Method Details
-
fromXContent
-
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
- Config to preview- Returns:
- A TransformConfig to preview, NOTE it will have a
null
id, destination and index.
-
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 datalatestConfig
- Config to preview- Returns:
- A TransformConfig to preview, NOTE it will have a
null
id, destination and index.
-
getId
-
getSource
-
getDestination
-
getFrequency
public org.elasticsearch.core.TimeValue getFrequency() -
getSyncConfig
-
getPivotConfig
-
getLatestConfig
-
getVersion
-
getCreateTime
-
getDescription
-
getSettings
-
getMetadata
-
getRetentionPolicyConfig
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-