Package com.rpl.agentorama
Class BuiltIn
java.lang.Object
com.rpl.agentorama.BuiltIn
Built-in aggregators for use with agent aggregation nodes.
This class provides pre-configured aggregators that can be used with
AgentTopology.newAgent(String) aggregation nodes. These aggregators
are wrappers around Rama's built-in aggregation functions, adapted for use
in agent-o-rama.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.rpl.agentorama.impl.BuiltInAggLogical AND aggregator.static com.rpl.agentorama.impl.BuiltInAggFirst value aggregator.static com.rpl.agentorama.impl.BuiltInAggLast value aggregator.static com.rpl.agentorama.impl.BuiltInAggList aggregator.static com.rpl.agentorama.impl.BuiltInAggMap aggregator.static com.rpl.agentorama.impl.BuiltInAggMaximum value aggregator.static com.rpl.agentorama.impl.BuiltInAggMerge map aggregator.static com.rpl.agentorama.impl.BuiltInAggMinimum value aggregator.static com.rpl.agentorama.impl.BuiltInAggMulti-set aggregator.static com.rpl.agentorama.impl.BuiltInAggLogical OR aggregator.static com.rpl.agentorama.impl.BuiltInAggSet aggregator.static com.rpl.agentorama.impl.BuiltInAggSum aggregator. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AND_AGG
public static com.rpl.agentorama.impl.BuiltInAgg AND_AGGLogical AND aggregator. Combines boolean values using logical AND. Returns true only if all aggregated values are true. -
FIRST_AGG
public static com.rpl.agentorama.impl.BuiltInAgg FIRST_AGGFirst value aggregator. Returns the first value encountered during aggregation. -
LAST_AGG
public static com.rpl.agentorama.impl.BuiltInAgg LAST_AGGLast value aggregator. Returns the last value encountered during aggregation. -
LIST_AGG
public static com.rpl.agentorama.impl.BuiltInAgg LIST_AGGList aggregator. Collects all values into a list in the order they were emitted. -
MAP_AGG
public static com.rpl.agentorama.impl.BuiltInAgg MAP_AGGMap aggregator. Collects key-value pairs into a map. Keys and values are the first two elements of each emitted value. -
MAX_AGG
public static com.rpl.agentorama.impl.BuiltInAgg MAX_AGGMaximum value aggregator. Returns the maximum value encountered during aggregation. Values must be comparable. -
MERGE_MAP_AGG
public static com.rpl.agentorama.impl.BuiltInAgg MERGE_MAP_AGGMerge map aggregator. Merges multiple maps into a single map. Each emitted value should be a map that gets merged into the aggregated result. -
MIN_AGG
public static com.rpl.agentorama.impl.BuiltInAgg MIN_AGGMinimum value aggregator. Returns the minimum value encountered during aggregation. Values must be comparable. -
MULTI_SET_AGG
public static com.rpl.agentorama.impl.BuiltInAgg MULTI_SET_AGGMulti-set aggregator. Collects values into a map from element to count. -
OR_AGG
public static com.rpl.agentorama.impl.BuiltInAgg OR_AGGLogical OR aggregator. Combines boolean values using logical OR. Returns true if any aggregated value is true. -
SET_AGG
public static com.rpl.agentorama.impl.BuiltInAgg SET_AGGSet aggregator. Collects unique values into a set, automatically deduplicating identical values. -
SUM_AGG
public static com.rpl.agentorama.impl.BuiltInAgg SUM_AGGSum aggregator. Sums all numeric values encountered during aggregation. Values must be numeric types (Integer, Long, Double, etc.).
-
-
Constructor Details
-
BuiltIn
public BuiltIn()
-