Class TransformConfig
java.lang.Object
org.elasticsearch.client.transform.transforms.TransformConfig
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public class TransformConfig extends java.lang.Object implements ToXContentObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransformConfig.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 ParseField
CREATE_TIME
static ParseField
DESCRIPTION
static ParseField
DEST
static ParseField
FREQUENCY
static ParseField
ID
static ConstructingObjectParser<TransformConfig,java.lang.Void>
PARSER
static ParseField
PIVOT_TRANSFORM
static ParseField
SETTINGS
static ParseField
SOURCE
static ParseField
SYNC
static ParseField
VERSION
-
Method Summary
Modifier and Type Method Description static TransformConfig.Builder
builder()
boolean
equals(java.lang.Object other)
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(XContentParser parser)
java.time.Instant
getCreateTime()
java.lang.String
getDescription()
DestConfig
getDestination()
TimeValue
getFrequency()
java.lang.String
getId()
PivotConfig
getPivotConfig()
SettingsConfig
getSettings()
SourceConfig
getSource()
SyncConfig
getSyncConfig()
Version
getVersion()
int
hashCode()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
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
- Pivot config to preview- Returns:
- A TransformConfig to preview, NOTE it will have a
null
id, destination and index.
-
getId
public java.lang.String getId() -
getSource
-
getDestination
-
getFrequency
-
getSyncConfig
-
getPivotConfig
-
getVersion
-
getCreateTime
public java.time.Instant getCreateTime() -
getDescription
-
getSettings
-
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
-