Class ConditionProperty

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(Graph graph, java.util.Map<java.lang.Integer,​java.lang.String> vertexTypes, java.util.Map<java.lang.Integer,​java.lang.String> edgeTypes)
      初始化条件过滤(使用时需要先init)
      boolean isSkipNotMatch()
      未匹配上规则,是否满足属性过滤。
      boolean isSkipNullProperty()
      属性值为null是否满足属性过滤。
      void setSkipNotMatch​(boolean skipNotMatch)
      true,没有匹配上任何一个规则时,满足属性过滤。 false,没有匹配上任何一个规则时,不满足属性过滤。 默认true。
      void setSkipNullProperty​(boolean skipNullProperty)
      true,匹配上属性规则时,但是对应的属性值不存在,满足属性过滤。 false,匹配上属性规则时,但是对应的属性值不存在,不满足属性过滤。 默认false。
      boolean test​(Element record)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • ConditionProperty

        public ConditionProperty​(java.util.Map<java.lang.String,​PropertyFilter> conditionFilterMap,
                                 boolean isVertex)
      • ConditionProperty

        public ConditionProperty​(PropertyFilter conditionFilter,
                                 boolean isVertex)
      • ConditionProperty

        public ConditionProperty​(java.util.Map<java.lang.String,​PropertyFilter> conditionFilterMap,
                                 PropertyFilter conditionFilter,
                                 boolean isVertex)
    • Method Detail

      • init

        public void init​(Graph graph,
                         java.util.Map<java.lang.Integer,​java.lang.String> vertexTypes,
                         java.util.Map<java.lang.Integer,​java.lang.String> edgeTypes)
        Description copied from interface: ConditionOnVisit
        初始化条件过滤(使用时需要先init)
        Specified by:
        init in interface ConditionOnVisit
        Parameters:
        graph - 图对象
        vertexTypes - 点过滤(key为点类型index,value为过滤的类型名)
        edgeTypes - 边过滤(key为点类型index,value为过滤的类型名)
      • test

        public boolean test​(Element record)
        Specified by:
        test in interface java.util.function.Predicate<Element>
      • isSkipNotMatch

        public boolean isSkipNotMatch()
        未匹配上规则,是否满足属性过滤。
        Returns:
        true满足,false不满足。
      • setSkipNotMatch

        public void setSkipNotMatch​(boolean skipNotMatch)
        true,没有匹配上任何一个规则时,满足属性过滤。 false,没有匹配上任何一个规则时,不满足属性过滤。 默认true。
        Parameters:
        skipNotMatch - 是否满足过滤条件
      • isSkipNullProperty

        public boolean isSkipNullProperty()
        属性值为null是否满足属性过滤。
        Returns:
        true满足,false不满足。
      • setSkipNullProperty

        public void setSkipNullProperty​(boolean skipNullProperty)
        true,匹配上属性规则时,但是对应的属性值不存在,满足属性过滤。 false,匹配上属性规则时,但是对应的属性值不存在,不满足属性过滤。 默认false。
        Parameters:
        skipNullProperty - 是否满足过滤条件