Interface OperationView
-
- All Known Subinterfaces:
GraphFilters,SeededGraphFilters
- All Known Implementing Classes:
GetAdjacentIds,GetAllElements,GetDataFrameOfElements,GetElements,GetElementsBetweenSets,GetElementsBetweenSetsPairs,GetElementsInRanges,GetElementsWithinSet,GetGraphFrameOfElements,GetJavaRDDOfAllElements,GetJavaRDDOfElements,GetJavaRDDOfElementsInRanges,GetRDDOfAllElements,GetRDDOfElements,GetRDDOfElementsInRanges,SummariseGroupOverRanges
public interface OperationViewAnOperationViewoperation contains aViewand can carry out additional validation based on the view contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceOperationView.Builder<OP extends OperationView,B extends OperationView.Builder<OP,?>>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ViewgetView()static booleanhasView(OperationView op)static booleanhasView(Operation op)voidsetView(View view)default voidsetViews(List<View> views)Merges a list ofViews, including the current if set, and sets theOperationViewto the new mergedView.default booleanvalidate(Edge edge)default booleanvalidate(Element element)default booleanvalidate(Entity entity)default booleanvalidatePostAggregationFilter(Element element)Validates an element against the post aggregation filters contained in the operation View.default booleanvalidatePostTransformFilter(Element element)Validates an element against the post transform filters contained in the operation View.default booleanvalidatePreAggregationFilter(Element element)Validates an element against the pre aggregation contained in the operation View.
-
-
-
Method Detail
-
validate
default boolean validate(Element element)
- Parameters:
element- theElementto be validated.- Returns:
- true if the
Elementis valid. Otherwise false and a reason should be logged.If the element class is known then validate(Entity) or validate(Edge) should be called instead to avoid unnecessary use of
instanceof. - See Also:
validate(Entity),validate(Edge)
-
validate
default boolean validate(Edge edge)
-
validate
default boolean validate(Entity entity)
-
validatePreAggregationFilter
default boolean validatePreAggregationFilter(Element element)
Validates an element against the pre aggregation contained in the operation View.- Parameters:
element- the element to validate- Returns:
- true if the element is validate
-
validatePostAggregationFilter
default boolean validatePostAggregationFilter(Element element)
Validates an element against the post aggregation filters contained in the operation View.- Parameters:
element- the element to validate- Returns:
- true if the element is validate
-
validatePostTransformFilter
default boolean validatePostTransformFilter(Element element)
Validates an element against the post transform filters contained in the operation View.- Parameters:
element- the element to validate- Returns:
- true if the element is validate
-
setViews
default void setViews(List<View> views)
Merges a list ofViews, including the current if set, and sets theOperationViewto the new mergedView.- Parameters:
views- the list of views to merge
-
hasView
static boolean hasView(Operation op)
-
hasView
static boolean hasView(OperationView op)
-
-