Module org.elasticsearch.xcore
Class SourceConfig
java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.SourceConfig
- All Implemented Interfaces:
Writeable,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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<SourceConfig, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ConstructingObjectParser<SourceConfig, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSourceConfig(String... index) Create a new SourceConfig for the provided indices.SourceConfig(String[] index, QueryConfig queryConfig, Map<String, Object> runtimeMappings) Create a new SourceConfig for the provided indices, from which data is gathered with the providedQueryConfig -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForDeprecations(String id, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) booleanstatic SourceConfigfromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) String[]getIndex()inthashCode()booleanorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) validate(ActionRequestValidationException validationException) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
QUERY
public static final org.elasticsearch.xcontent.ParseField QUERY -
INDEX
public static final org.elasticsearch.xcontent.ParseField INDEX -
STRICT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<SourceConfig,Void> STRICT_PARSER -
LENIENT_PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<SourceConfig,Void> LENIENT_PARSER
-
-
Constructor Details
-
SourceConfig
Create a new SourceConfig for the provided indices.QueryConfigdefaults to a MatchAll query.- Parameters:
index- Any number of indices. At least one non-null, non-empty, index should be provided
-
SourceConfig
Create a new SourceConfig for the provided indices, from which data is gathered with the providedQueryConfig- Parameters:
index- Any number of indices. At least one non-null, non-empty, index should be providedqueryConfig- A QueryConfig object that contains the desired query, needs to be non-nullruntimeMappings- Search-time runtime fields that can be used by the transform
-
SourceConfig
- Throws:
IOException
-
-
Method Details
-
getIndex
-
getQueryConfig
-
getRuntimeMappings
-
getScriptBasedRuntimeMappings
-
validate
public ActionRequestValidationException validate(ActionRequestValidationException validationException) -
checkForDeprecations
public void checkForDeprecations(String id, org.elasticsearch.xcontent.NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) -
requiresRemoteCluster
public boolean requiresRemoteCluster() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
fromXContent
public static SourceConfig fromXContent(org.elasticsearch.xcontent.XContentParser parser, boolean lenient) throws IOException - Throws:
IOException
-