/** * Returns true if the field is needed to evaluate the projection */ public boolean isFieldRequiredToEvaluateProjection(Path field) { LOGGER.debug("Checking if {} is referenced in projection", field); return isFieldRequiredToEvaluateProjection(field, Path.EMPTY); }
/** * Returns true if the field is needed to evaluate the projection */ public boolean isFieldRequiredToEvaluateProjection(Path field) { LOGGER.debug("Checking if {} is referenced in projection", field); return isFieldRequiredToEvaluateProjection(field, Path.EMPTY); }
(node instanceof ArrayElement)) { } else if( (p!=null && p.isFieldRequiredToEvaluateProjection(field)) || (q!=null && q.isRequired(field)) || (s!=null && s.isRequired(field)) ) {
|| (node instanceof ArrayElement)) { } else if ((p != null && p.isFieldRequiredToEvaluateProjection(field)) || (q != null && q.isRequired(field)) || (s != null && s.isRequired(field))) {
ret = ((ArrayProjection) this).getProject().isFieldRequiredToEvaluateProjection(field, nestedCtx); } else if (this instanceof ProjectionList) { for (Projection x : ((ProjectionList) this).getItems()) { if (x.isFieldRequiredToEvaluateProjection(field, ctx)) { return true;
ret = ((ArrayProjection) this).getProject().isFieldRequiredToEvaluateProjection(field, nestedCtx); } else if (this instanceof ProjectionList) { for (Projection x : ((ProjectionList) this).getItems()) { if (x.isFieldRequiredToEvaluateProjection(field, ctx)) { return true;
fields.add(new Path(localField,Path.ANYPATH)); } else { if (localProjection != null && localProjection.isFieldRequiredToEvaluateProjection(localField)) { LOGGER.debug("{}: required", localField); fields.add(localField); if (requestProjection != null && requestProjection.isFieldRequiredToEvaluateProjection(globalField)) { LOGGER.debug("{}: required", localField); fields.add(localField);
fields.add(new Path(localField,Path.ANYPATH)); } else { if (localProjection != null && localProjection.isFieldRequiredToEvaluateProjection(localField)) { LOGGER.debug("{}: required", localField); fields.add(localField); if (requestProjection != null && requestProjection.isFieldRequiredToEvaluateProjection(globalField)) { LOGGER.debug("{}: required", localField); fields.add(localField);