Package oracle.pgx.api.filter
Class EdgeFilter
- java.lang.Object
-
- oracle.pgx.api.filter.GraphFilter
-
- oracle.pgx.api.filter.GraphFilterWithExpression
-
- oracle.pgx.api.filter.EdgeFilter
-
public class EdgeFilter extends GraphFilterWithExpression
A class that wraps a filter expression supposed to be evaluated on each edge of the graph
-
-
Field Summary
Fields Modifier and Type Field Description static EdgeFilterALLEdge filter set equal to true for all edges.static EdgeFilterNONEEdge filter set equal to false for all edges.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeFilterasEdgeFilter()Gets this filter object as edge filter, if possible.static EdgeFilterfromCollection(oracle.pgx.common.IdentifiableEdgeCollection edgeCollection)Instantiates a new edge collection edge filter.static EdgeFilterfromExpression(java.lang.String filterExpression)Instantiates a new edge filter using an expression.static EdgeFilterfromPgqlResultSet(oracle.pgx.common.IdentifiableResultSet resultSet, java.lang.String columnName)Instantiates a new result set edge filter.java.lang.StringtoString()-
Methods inherited from class oracle.pgx.api.filter.GraphFilterWithExpression
asGraphFilterWithExpression, equals, fromTypeAndExpression, getFilterExpression, hasExpression, hashCode
-
Methods inherited from class oracle.pgx.api.filter.GraphFilter
asBinaryGraphFilterOperation, asVertexFilter, getType, intersect, isBinaryOperation, isCollectionFilter, isPathFindingFilter, isResultSetFilter, union
-
-
-
-
Field Detail
-
ALL
public static final EdgeFilter ALL
Edge filter set equal to true for all edges.
-
NONE
public static final EdgeFilter NONE
Edge filter set equal to false for all edges.
-
-
Method Detail
-
fromExpression
public static EdgeFilter fromExpression(java.lang.String filterExpression)
Instantiates a new edge filter using an expression.- Parameters:
filterExpression- the edge-filter expression- Returns:
- the new filter
- Since:
- 20.0
-
fromPgqlResultSet
public static EdgeFilter fromPgqlResultSet(oracle.pgx.common.IdentifiableResultSet resultSet, java.lang.String columnName)
Instantiates a new result set edge filter.- Parameters:
resultSet- the result set on which the filter actscolumnName- the column name to be fetched from the result set- Returns:
- the new filter
- Since:
- 20.0
-
fromCollection
public static EdgeFilter fromCollection(oracle.pgx.common.IdentifiableEdgeCollection edgeCollection)
Instantiates a new edge collection edge filter.- Parameters:
edgeCollection- the collection on which the filter acts- Returns:
- the new filter
- Since:
- 20.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asEdgeFilter
public EdgeFilter asEdgeFilter()
Description copied from class:GraphFilterGets this filter object as edge filter, if possible. Save to call ifGraphFilter.getType()== FilterType.EDGE- Overrides:
asEdgeFilterin classGraphFilter- Returns:
- the edge filter
-
-