java.lang.Object
org.elasticsearch.xpack.core.transform.transforms.SourceConfig
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class SourceConfig extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
  • 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

      public SourceConfig(String... index)
      Create a new SourceConfig for the provided indices. QueryConfig defaults to a MatchAll query.
      Parameters:
      index - Any number of indices. At least one non-null, non-empty, index should be provided
    • SourceConfig

      public SourceConfig(String[] index, QueryConfig queryConfig, Map<String,Object> runtimeMappings)
      Create a new SourceConfig for the provided indices, from which data is gathered with the provided QueryConfig
      Parameters:
      index - Any number of indices. At least one non-null, non-empty, index should be provided
      queryConfig - A QueryConfig object that contains the desired query, needs to be non-null
      runtimeMappings - Search-time runtime fields that can be used by the transform
    • SourceConfig

      public SourceConfig(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details