public abstract class ArrayProjector extends Projector
| Constructor and Description |
|---|
ArrayProjector(ArrayProjection p,
Path ctxPath,
FieldTreeNode context)
Sets up the projector context
|
| Modifier and Type | Method and Description |
|---|---|
Path |
getArrayFieldPattern() |
Projector |
getNestedProjector()
Returns the nested projector
|
Sort |
getSort() |
protected boolean |
isIncluded() |
Projection.Inclusion |
project(Path p,
QueryEvaluationContext ctx)
Returns true, false, or null if the result cannot be determined.
|
protected abstract Projection.Inclusion |
projectArray(Path p,
QueryEvaluationContext ctx)
Check if the array element matches.
|
com.fasterxml.jackson.databind.node.ArrayNode |
sortArray(com.fasterxml.jackson.databind.node.ArrayNode array,
com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
Sorts the given array node using the sort criteria given in this ArrayProjector
|
getInstance, getInstance, projectpublic ArrayProjector(ArrayProjection p, Path ctxPath, FieldTreeNode context)
protected boolean isIncluded()
public Path getArrayFieldPattern()
public Sort getSort()
public Projector getNestedProjector()
getNestedProjector in class Projectorpublic Projection.Inclusion project(Path p, QueryEvaluationContext ctx)
Projectorpublic com.fasterxml.jackson.databind.node.ArrayNode sortArray(com.fasterxml.jackson.databind.node.ArrayNode array,
com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
array - The array node to sortfactory - Json node factory
If there is a sort criteria defined in this, the array elements are
sorted using that.array itselfprotected abstract Projection.Inclusion projectArray(Path p, QueryEvaluationContext ctx)
Copyright © 2015. All rights reserved.