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 Object
implements org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ConstructingObjectParser<TransformConfig,Void>
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
Fields inherited from interface org.elasticsearch.common.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.common.xcontent.XContentParser parser)
org.elasticsearch.core.TimeValue
getId()
org.elasticsearch.Version
int
hashCode()
toString()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.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.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
ID
public static final org.elasticsearch.common.xcontent.ParseField ID -
SOURCE
public static final org.elasticsearch.common.xcontent.ParseField SOURCE -
DEST
public static final org.elasticsearch.common.xcontent.ParseField DEST -
FREQUENCY
public static final org.elasticsearch.common.xcontent.ParseField FREQUENCY -
DESCRIPTION
public static final org.elasticsearch.common.xcontent.ParseField DESCRIPTION -
SYNC
public static final org.elasticsearch.common.xcontent.ParseField SYNC -
SETTINGS
public static final org.elasticsearch.common.xcontent.ParseField SETTINGS -
VERSION
public static final org.elasticsearch.common.xcontent.ParseField VERSION -
CREATE_TIME
public static final org.elasticsearch.common.xcontent.ParseField CREATE_TIME -
RETENTION_POLICY
public static final org.elasticsearch.common.xcontent.ParseField RETENTION_POLICY -
PIVOT_TRANSFORM
public static final org.elasticsearch.common.xcontent.ParseField PIVOT_TRANSFORM -
LATEST_TRANSFORM
public static final org.elasticsearch.common.xcontent.ParseField LATEST_TRANSFORM -
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<TransformConfig,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
- 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
public org.elasticsearch.Version getVersion() -
getCreateTime
-
getDescription
-
getSettings
-
getRetentionPolicyConfig
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
-