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
SOURCE
static ParseField
SYNC
static ParseField
VERSION
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
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()
SourceConfig
getSource()
SyncConfig
getSyncConfig()
Version
getVersion()
int
hashCode()
java.lang.String
toString()
XContentBuilder
toXContent(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
-
FREQUENCY
public static final ParseField FREQUENCY
-
DESCRIPTION
public static final ParseField DESCRIPTION
-
SYNC
public static final ParseField SYNC
-
VERSION
public static final ParseField VERSION
-
CREATE_TIME
public static final ParseField CREATE_TIME
-
PIVOT_TRANSFORM
public static final ParseField PIVOT_TRANSFORM
-
PARSER
public static final ConstructingObjectParser<TransformConfig,java.lang.Void> PARSER
-
-
Method Detail
-
fromXContent
public static TransformConfig fromXContent(XContentParser parser)
-
forPreview
public 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. 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
public SourceConfig getSource()
-
getDestination
public DestConfig getDestination()
-
getFrequency
public TimeValue getFrequency()
-
getSyncConfig
public SyncConfig getSyncConfig()
-
getPivotConfig
public PivotConfig getPivotConfig()
-
getVersion
public Version getVersion()
-
getCreateTime
public java.time.Instant getCreateTime()
-
getDescription
@Nullable public java.lang.String getDescription()
-
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
public static TransformConfig.Builder builder()
-
-