Package oracle.pgx.api.filter
Class GraphFilter
- java.lang.Object
-
- oracle.pgx.api.filter.GraphFilter
-
- Direct Known Subclasses:
BinaryGraphFilterOperation,GraphFilterWithExpression,PathFindingFilter
public abstract class GraphFilter extends java.lang.ObjectAn abstract class representing any GraphFilters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryGraphFilterOperationasBinaryGraphFilterOperation()Gets this filter object as binary graph filter operation, if possible.EdgeFilterasEdgeFilter()Gets this filter object as edge filter, if possible.GraphFilterWithExpressionasGraphFilterWithExpression()Gets this filter object as graph filter with expression, if possible.VertexFilterasVertexFilter()Gets this filter object as vertex filter, if possible.booleanequals(java.lang.Object o)FilterTypegetType()Gets the type of the filter.booleanhasExpression()Checks if this GraphFilter object has an expression associated with it.inthashCode()FilterIntersectionintersect(GraphFilter other)Intersects this filter with another graph-filter object.booleanisBinaryOperation()Checks if this GraphFilter object represents is binary operation.booleanisCollectionFilter()Checks if the filter is using a collectionbooleanisPathFindingFilter()Checks if the filter is a path finding filterbooleanisResultSetFilter()Checks if the filter is acting on a result setFilterUnionunion(GraphFilter other)Unions this filter with another graph-filter object.
-
-
-
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 ifisBinaryOperation()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 ifhasExpression()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 ifgetType()== FilterType.EDGE- Returns:
- the edge filter
-
asVertexFilter
public VertexFilter asVertexFilter()
Gets this filter object as vertex filter, if possible. Save to call ifgetType()== 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-