Class NestedScope
- java.lang.Object
-
- org.elasticsearch.index.query.support.NestedScope
-
public final class NestedScope extends java.lang.Object
During query parsing this keeps track of the current nested level.
-
-
Constructor Summary
Constructors Constructor Description NestedScope()
-
Method Summary
Modifier and Type Method Description ObjectMapper
getObjectMapper()
ObjectMapper
nextLevel(ObjectMapper level)
Sets the new current nested level and pushes old current nested level down the stack returns that level.ObjectMapper
previousLevel()
Sets the previous nested level as current nested level and removes and returns the current nested level.
-
-
-
Method Detail
-
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.
-
-