java.lang.Object
org.apache.jena.sparql.expr.aggregate.AggregateRegistry
Registry of custom aggregates
There is only a single global registry of aggregates - it affects parsing
and parsing happens before Context or Execution makes sense.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccumulatorFactoryReturn the AccumulatorFactory for a registered custom aggregate.static org.apache.jena.graph.NodegetNoGroupValue(String uri) Return the registered "no groups" valuestatic voidinit()static booleanisRegistered(String uri) Is the URI registered as an aggregate function?static voidregister(String uri, AccumulatorFactory accFactory) Register a custom aggregate, with its associated factory for accumulators.static voidregister(String uri, AccumulatorFactory accFactory, org.apache.jena.graph.Node noGroupValue) static voidunregister(String uri) Remove a registration.
-
Constructor Details
-
AggregateRegistry
public AggregateRegistry()
-
-
Method Details
-
init
public static void init() -
register
Register a custom aggregate, with its associated factory for accumulators. -
register
public static void register(String uri, AccumulatorFactory accFactory, org.apache.jena.graph.Node noGroupValue) -
unregister
Remove a registration. -
getAccumulatorFactory
Return the AccumulatorFactory for a registered custom aggregate. -
getNoGroupValue
Return the registered "no groups" value -
isRegistered
Is the URI registered as an aggregate function?
-