Class VertexFilter


  • public class VertexFilter
    extends GraphFilterWithExpression
    A class that wraps a filter expression supposed to be evaluated on each vertex of the graph
    • Field Detail

      • ALL

        public static final VertexFilter ALL
        Vertex filter set equal to true for all edges.
      • NONE

        public static final VertexFilter NONE
        Vertex filter set equal to false for all edges.
    • Method Detail

      • fromExpression

        public static VertexFilter fromExpression​(java.lang.String filterExpression)
        Instantiates a new vertex filter using an expression.
        Parameters:
        filterExpression - the vertex-filter expression
        Returns:
        the new filter
        Since:
        20.0
      • fromPgqlResultSet

        public static VertexFilter fromPgqlResultSet​(oracle.pgx.common.IdentifiableResultSet resultSet,
                                                     java.lang.String columnName)
        Instantiates a new result set vertex filter.
        Parameters:
        resultSet - the result set on which the filter acts
        columnName - the column name to be fetched from the result set
        Returns:
        the new filter
        Since:
        20.0
      • fromCollection

        public static VertexFilter fromCollection​(oracle.pgx.common.IdentifiableVertexCollection vertexCollection)
        Instantiates a new vertex collection vertex filter.
        Parameters:
        vertexCollection - the collection on which the filter acts
        Returns:
        the new filter
        Since:
        20.0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object