Class AslUtils
java.lang.Object
org.ehrbase.openehr.aqlengine.asl.AslUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stream<AslFieldFieldQueryCondition> archetypeAnchorJoinConditions(PathCohesionAnalysis.PathCohesionTreeNode leftNode, AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) static <T> Stream<T> concatStreams(Stream<? extends T>... streams) static Stream<AslFieldFieldQueryCondition> descendantJoinConditionProviders(AslQuery leftQuery, AslStructureQuery leftOwner, RmContainsWrapper leftWrapper, AslQuery rightQuery, AslStructureQuery rightOwner, RmContainsWrapper rightWrapper, boolean archetypeLocalNodePredicates) static AslColumnFieldfindFieldForOwner(String fieldName, List<AslField> fields, AslQuery owner) static AslColumnFieldfindFieldForOwner(AslStructureColumn structureField, List<AslField> fields, AslQuery owner) getTargetType(AslQuery target) static Stream<AslFieldFieldQueryCondition> nodeIdAnchorJoinConditions(PathCohesionAnalysis.PathCohesionTreeNode leftNode, AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) static Optional<TemporalAccessor> static Stream<AslFieldFieldQueryCondition> pathChildJoinConditions(AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) static Stream<AslCoalesceJoinCondition> sameParentAsSiblingsJoinCondition(AslEncapsulatingQuery query, AslQuery leftProvider, AslQuery rightProvider, AslStructureQuery rightOwner, PathCohesionAnalysis.PathCohesionTreeNode currentNode, Function<PathCohesionAnalysis.PathCohesionTreeNode, org.ehrbase.openehr.aqlengine.asl.OwnerProviderTuple> nodeToSq) streamConditionDescriptors(ConditionWrapper condition) streamConditionFields(AslQueryCondition condition) streamFieldNames(AslField field) toLinkedHashMap(Function<? super T, ? extends K> keyMapper, Function<? super T, ? extends U> valueMapper) static OffsetDateTimetoOffsetDateTime(org.ehrbase.openehr.sdk.aql.dto.operand.StringPrimitive sp) static StringtranslateAqlLikePatternToSql(String aqlLike)
-
Method Details
-
toLinkedHashMap
-
concatStreams
-
streamFieldNames
-
getTargetType
-
streamConditionFields
-
streamConditionDescriptors
public static Stream<ComparisonOperatorConditionWrapper> streamConditionDescriptors(ConditionWrapper condition) -
translateAqlLikePatternToSql
-
toOffsetDateTime
public static OffsetDateTime toOffsetDateTime(org.ehrbase.openehr.sdk.aql.dto.operand.StringPrimitive sp) -
parseDateTimeOrTimeWithHigherPrecision
-
findFieldForOwner
public static AslColumnField findFieldForOwner(AslStructureColumn structureField, List<AslField> fields, AslQuery owner) -
findFieldForOwner
public static AslColumnField findFieldForOwner(String fieldName, List<AslField> fields, AslQuery owner) -
descendantJoinConditionProviders
public static Stream<AslFieldFieldQueryCondition> descendantJoinConditionProviders(AslQuery leftQuery, AslStructureQuery leftOwner, RmContainsWrapper leftWrapper, AslQuery rightQuery, AslStructureQuery rightOwner, RmContainsWrapper rightWrapper, boolean archetypeLocalNodePredicates) -
pathChildJoinConditions
public static Stream<AslFieldFieldQueryCondition> pathChildJoinConditions(AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) -
archetypeAnchorJoinConditions
public static Stream<AslFieldFieldQueryCondition> archetypeAnchorJoinConditions(PathCohesionAnalysis.PathCohesionTreeNode leftNode, AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) -
nodeIdAnchorJoinConditions
public static Stream<AslFieldFieldQueryCondition> nodeIdAnchorJoinConditions(PathCohesionAnalysis.PathCohesionTreeNode leftNode, AslQuery left, AslStructureQuery leftOwner, AslQuery right, AslStructureQuery rightOwner) -
sameParentAsSiblingsJoinCondition
public static Stream<AslCoalesceJoinCondition> sameParentAsSiblingsJoinCondition(AslEncapsulatingQuery query, AslQuery leftProvider, AslQuery rightProvider, AslStructureQuery rightOwner, PathCohesionAnalysis.PathCohesionTreeNode currentNode, Function<PathCohesionAnalysis.PathCohesionTreeNode, org.ehrbase.openehr.aqlengine.asl.OwnerProviderTuple> nodeToSq)
-