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 OperationView
AnOperationView
operation contains aView
and can carry out additional validation based on the view contents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
OperationView.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 View
getView()
static boolean
hasView(OperationView op)
static boolean
hasView(Operation op)
void
setView(View view)
default void
setViews(List<View> views)
Merges a list ofView
s, including the current if set, and sets theOperationView
to the new mergedView
.default boolean
validate(Edge edge)
default boolean
validate(Element element)
default boolean
validate(Entity entity)
default boolean
validatePostAggregationFilter(Element element)
Validates an element against the post aggregation filters contained in the operation View.default boolean
validatePostTransformFilter(Element element)
Validates an element against the post transform filters contained in the operation View.default boolean
validatePreAggregationFilter(Element element)
Validates an element against the pre aggregation contained in the operation View.
-
-
-
Method Detail
-
validate
default boolean validate(Element element)
- Parameters:
element
- theElement
to be validated.- Returns:
- true if the
Element
is 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 ofView
s, including the current if set, and sets theOperationView
to the new mergedView
.- Parameters:
views
- the list of views to merge
-
hasView
static boolean hasView(Operation op)
-
hasView
static boolean hasView(OperationView op)
-
-