public class QEManip extends Object
Constructor and Description |
---|
QEManip() |
Modifier and Type | Method and Description |
---|---|
static <T extends HGQueryCondition> |
collapse(HyperGraph graph,
Set<HGQueryCondition> S) |
static Map<Class<?>,Set<HGQueryCondition>> |
find(Collection<HGQueryCondition> C,
Class<?>... condType)
Collect and group different types of conditions in map.
|
static HGHandle |
findMostSpecific(HyperGraph graph,
HGHandle left,
HGHandle right) |
static Pair<AtomTypeCondition,TypeConditionAggregate> |
reduce(HyperGraph graph,
Set<TypeCondition> bytype)
Return the one true type condition out of a conjunction of multiple
conditions that constrain by type in one way or another.
|
public static HGHandle findMostSpecific(HyperGraph graph, HGHandle left, HGHandle right)
public static <T extends HGQueryCondition> T collapse(HyperGraph graph, Set<HGQueryCondition> S)
public static Pair<AtomTypeCondition,TypeConditionAggregate> reduce(HyperGraph graph, Set<TypeCondition> bytype)
graph
- bytype
- public static Map<Class<?>,Set<HGQueryCondition>> find(Collection<HGQueryCondition> C, Class<?>... condType)
Collect and group different types of conditions in map. The method takes
any number of condition Class-es and return a map Class->SetClass.isAssignableFrom
so a given condition could end in
multiple map entries if some of the Class arguments inherit from each
other. If no condition of a specified Class is found, the map won't
contain an entry for that class at all.
C
- condType
- Copyright © 2015. All rights reserved.