java.lang.Object
org.elasticsearch.compute.operator.lookup.QueryList

public abstract class QueryList extends Object
Generates a list of Lucene queries based on the input block.
  • Field Details

    • searchExecutionContext

      protected final SearchExecutionContext searchExecutionContext
    • field

      protected final MappedFieldType field
    • block

      protected final Block block
    • onlySingleValues

      protected final boolean onlySingleValues
  • Constructor Details

  • Method Details

    • onlySingleValues

      public abstract QueryList onlySingleValues()
      Returns a copy of this query list that only returns queries for single-valued positions. That is, it returns `null` queries for either multivalued or null positions.
    • rawTermQueryList

      public static QueryList rawTermQueryList(MappedFieldType field, SearchExecutionContext searchExecutionContext, Block block)
      Returns a list of term queries for the given field and the input block using only the ElementType of the Block to determine the query.
    • ipTermQueryList

      public static QueryList ipTermQueryList(MappedFieldType field, SearchExecutionContext searchExecutionContext, BytesRefBlock block)
      Returns a list of term queries for the given field and the input block of ip field values.
    • dateTermQueryList

      public static QueryList dateTermQueryList(MappedFieldType field, SearchExecutionContext searchExecutionContext, LongBlock block)
      Returns a list of term queries for the given field and the input block of date field values.
    • dateNanosTermQueryList

      public static QueryList dateNanosTermQueryList(MappedFieldType field, SearchExecutionContext searchExecutionContext, LongBlock block)
      Returns a list of term queries for the given field and the input block of date_nanos field values.
    • geoShapeQueryList

      public static QueryList geoShapeQueryList(MappedFieldType field, SearchExecutionContext searchExecutionContext, Block block)
      Returns a list of geo_shape queries for the given field and the input block.