java.lang.Object
com.pervasive.datarush.graphs.LogicalStatistic.Builder
- Enclosing class:
- LogicalStatistic
A builder for statistics. The following fields are required to be populated
prior to calling
build():
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignment(NodeAllocationState.AssignmentState assignment) Sets the value forLogicalStatistic.originalNodeID()andLogicalStatistic.nodeID()based on the specified assignment.build()Creates a new LogicalStatistic.define(RuntimeStatistic<?> statistic) Sets the values forLogicalStatistic.definition()andLogicalStatistic.supplier()based on those specified.<T extends StatisticSupplier>
LogicalStatistic.Builderdefine(StatisticDefinition<T> definition, T supplier) Sets the values forLogicalStatistic.definition()andLogicalStatistic.supplier()based on those specified.Returns the value forLogicalStatistic.definition().nodeID()Returns the value forLogicalStatistic.nodeID().nodeID(VirtualNodeID nodeID) Sets the value forLogicalStatistic.nodeID().Returns the value forLogicalStatistic.originalNodeID().originalNodeID(VirtualNodeID originalNodeID) Sets the value forLogicalStatistic.originalNodeID().path()Returns the value forLogicalStatistic.path().Sets the value forLogicalStatistic.path().supplier()Returns the value forLogicalStatistic.supplier().
-
Constructor Details
-
Builder
public Builder()Creates a new builder with no fields populated
-
-
Method Details
-
path
Returns the value forLogicalStatistic.path().- Returns:
- the value for
LogicalStatistic.path().
-
path
Sets the value forLogicalStatistic.path().- Parameters:
path- the value forLogicalStatistic.path().- Returns:
- a
thisreference to support method chaining.
-
nodeID
Returns the value forLogicalStatistic.nodeID().- Returns:
- the value for
LogicalStatistic.nodeID().
-
assignment
Sets the value forLogicalStatistic.originalNodeID()andLogicalStatistic.nodeID()based on the specified assignment.- Parameters:
assignment- the assignment to use to determineoriginalNodeIDandnodeID.- Returns:
- a
thisreference to support method chaining.
-
nodeID
Sets the value forLogicalStatistic.nodeID().- Parameters:
nodeID- the value forLogicalStatistic.nodeID().- Returns:
- a
thisreference to support method chaining.
-
originalNodeID
Returns the value forLogicalStatistic.originalNodeID().- Returns:
- the value for
LogicalStatistic.originalNodeID().
-
originalNodeID
Sets the value forLogicalStatistic.originalNodeID().- Parameters:
originalNodeID- the value forLogicalStatistic.originalNodeID().- Returns:
- a
thisreference to support method chaining.
-
definition
Returns the value forLogicalStatistic.definition().- Returns:
- the value for
LogicalStatistic.definition().
-
supplier
Returns the value forLogicalStatistic.supplier().- Returns:
- the value for
LogicalStatistic.supplier().
-
define
public <T extends StatisticSupplier> LogicalStatistic.Builder define(StatisticDefinition<T> definition, T supplier) Sets the values forLogicalStatistic.definition()andLogicalStatistic.supplier()based on those specified.- Type Parameters:
T- the type of supplied required by the definition- Parameters:
definition- the definitionsupplier- the supplier; must of of the a type that is compatible with the definition- Returns:
- a
thisreference to support method chaining.
-
define
Sets the values forLogicalStatistic.definition()andLogicalStatistic.supplier()based on those specified.- Parameters:
statistic- the statistic- Returns:
- a
thisreference to support method chaining.
-
build
Creates a new LogicalStatistic. The following fields are required to be populated prior to callingbuild():- Returns:
- a newly-created LogicalStatistic
-