Class NestedScope

java.lang.Object
org.elasticsearch.index.query.support.NestedScope

public final class NestedScope extends Object
During query parsing this keeps track of the current nested level.
  • Constructor Details

    • NestedScope

      public NestedScope()
  • Method Details

    • getObjectMapper

      public ObjectMapper getObjectMapper()
      Returns:
      For the current nested level returns the object mapper that belongs to that
    • nextLevel

      public ObjectMapper nextLevel(ObjectMapper level)
      Sets the new current nested level and pushes old current nested level down the stack returns that level.
    • previousLevel

      public ObjectMapper previousLevel()
      Sets the previous nested level as current nested level and removes and returns the current nested level.