Class GraphFilter

    • Method Detail

      • getType

        public final FilterType getType()
        Gets the type of the filter.
        Returns:
        the type of the filter
      • intersect

        public final FilterIntersection intersect​(GraphFilter other)
        Intersects this filter with another graph-filter object.
        Parameters:
        other - the other graph-filter
        Returns:
        a class representing the filter intersection
      • union

        public final FilterUnion union​(GraphFilter other)
        Unions this filter with another graph-filter object.
        Parameters:
        other - the other graph-filter
        Returns:
        a class representing the filter union
      • hasExpression

        public boolean hasExpression()
        Checks if this GraphFilter object has an expression associated with it.
        Returns:
        true, if this GraphFilter object has an expression associated with it
      • isBinaryOperation

        public boolean isBinaryOperation()
        Checks if this GraphFilter object represents is binary operation.
        Returns:
        true, if this GraphFilter object represents is binary operation
      • asGraphFilterWithExpression

        public GraphFilterWithExpression asGraphFilterWithExpression()
        Gets this filter object as graph filter with expression, if possible. Save to call if isBinaryOperation() evaluates to true.
        Returns:
        the graph filter with expression
      • asBinaryGraphFilterOperation

        public BinaryGraphFilterOperation asBinaryGraphFilterOperation()
        Gets this filter object as binary graph filter operation, if possible. Save to call if hasExpression() evaluates to true.
        Returns:
        the binary graph filter operation
      • asEdgeFilter

        public EdgeFilter asEdgeFilter()
        Gets this filter object as edge filter, if possible. Save to call if getType() == FilterType.EDGE
        Returns:
        the edge filter
      • asVertexFilter

        public VertexFilter asVertexFilter()
        Gets this filter object as vertex filter, if possible. Save to call if getType() == FilterType.VERTEX
        Returns:
        the vertex filter
      • isResultSetFilter

        public boolean isResultSetFilter()
        Checks if the filter is acting on a result set
        Returns:
        true if the filter acts on a result set
      • isCollectionFilter

        public boolean isCollectionFilter()
        Checks if the filter is using a collection
        Returns:
        true if the filter uses a collection
      • isPathFindingFilter

        public boolean isPathFindingFilter()
        Checks if the filter is a path finding filter
        Returns:
        true if the filter is a path finding filter
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object