Class AggregateRegistry
- java.lang.Object
-
- org.apache.jena.sparql.expr.aggregate.AggregateRegistry
-
public class AggregateRegistry extends java.lang.ObjectRegistry 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 Constructor Description AggregateRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AccumulatorFactorygetAccumulatorFactory(java.lang.String uri)Return the AccumulatorFactory for a registered custom aggregate.static NodegetNoGroupValue(java.lang.String uri)Return the registered "no groups" valuestatic voidinit()static booleanisRegistered(java.lang.String uri)Is the URI registered as an aggregate function?static voidregister(java.lang.String uri, AccumulatorFactory accFactory)Register a custom aggregate, with its associated factory for accumulators.static voidregister(java.lang.String uri, AccumulatorFactory accFactory, Node noGroupValue)static voidunregister(java.lang.String uri)Remove a registration.
-
-
-
Method Detail
-
init
public static void init()
-
register
public static void register(java.lang.String uri, AccumulatorFactory accFactory)Register a custom aggregate, with its associated factory for accumulators.
-
register
public static void register(java.lang.String uri, AccumulatorFactory accFactory, Node noGroupValue)
-
unregister
public static void unregister(java.lang.String uri)
Remove a registration.
-
getAccumulatorFactory
public static AccumulatorFactory getAccumulatorFactory(java.lang.String uri)
Return the AccumulatorFactory for a registered custom aggregate.
-
getNoGroupValue
public static Node getNoGroupValue(java.lang.String uri)
Return the registered "no groups" value
-
isRegistered
public static boolean isRegistered(java.lang.String uri)
Is the URI registered as an aggregate function?
-
-