P
- The type of aggregated document on which the handler operates.public interface IAggregationHandler<P extends IAggregationDocumentParameterized<P>>
Modifier and Type | Field and Description |
---|---|
static int |
EXTRA_ORDERS_FLUSH_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discards the current document passed to the processor, that is prevents it from going to the next stage.
|
java.lang.String |
getReason()
Returns a string representing the reason for the document being pushed to aggregation.
|
java.util.List<java.util.List<P>> |
match(P document,
java.lang.String matchingExpression)
Finds the list of paths in the graph that start from the specified
IAggregationDocument and
that satisfy the @i matchingExpression. |
java.util.List<P> |
matchPathEnd(P document,
java.lang.String matchingExpression)
Returns the last documents of every paths in the graph that start from the specified
IAggregationDocument
and that satisfy the @i matchingExpression. |
java.util.List<P> |
matchPathEnd(P document,
java.lang.String matchingExpression,
boolean testDirectives,
boolean testParts,
java.lang.String... metas)
Finds the list of documents in the graph that start from the specified
IAggregationDocument and
that satisfy the @i matchingExpression. |
java.util.List<P> |
matchPathEnd(P document,
java.lang.String matchingExpression,
java.lang.String... metas)
Finds the list of documents in the graph that start from the specified
IAggregationDocument and
that satisfy the @i matchingExpression. |
void |
yield(P document)
Yields the given document to the next aggregation processor or to the Forwarding Rules.
|
void |
yieldAndForward(P document)
Yields the given document to the next aggregation processor.
|
static final int EXTRA_ORDERS_FLUSH_SIZE
void discard()
java.lang.String getReason()
java.util.List<java.util.List<P>> match(@Nonnull P document, @Nonnull java.lang.String matchingExpression)
IAggregationDocument
and
that satisfy the @i matchingExpression.document
- The starting document from which we will evaluate the matching expression.matchingExpression
- Defines the valid sequence of arcs that will be returned if found in the graph.java.util.List<P> matchPathEnd(P document, java.lang.String matchingExpression)
IAggregationDocument
and that satisfy the @i matchingExpression.document
- The starting document from which we will evaluate the matching expression.matchingExpression
- Defines the valid sequence of arcs that will be returned if found in the graph.java.util.List<P> matchPathEnd(P document, java.lang.String matchingExpression, boolean testDirectives, boolean testParts, java.lang.String... metas)
IAggregationDocument
and
that satisfy the @i matchingExpression.document
- The starting document from which we will evaluate the matching expression.matchingExpression
- Defines the valid sequence of arcs that will be returned if found in the graph.
The pattern string should preferably be a static string to allow the static code analyzed to extract it at build time
which is required by the impact analysis.testDirectives
- If the directives should be checked for change.testParts
- If the parts should be checked for change.metas
- The metas to check for impact detection.java.util.List<P> matchPathEnd(P document, java.lang.String matchingExpression, java.lang.String... metas)
IAggregationDocument
and
that satisfy the @i matchingExpression.
This is equivalent to call #matchPathEnd(P, String, boolean, boolean, String...)
with testDirectives and testParts as false values.document
- The starting document from which we will evaluate the matching expression.matchingExpression
- Defines the valid sequence of arcs that will be returned if found in the graph.
The pattern string should preferably be a static string to allow the static code analyzed to extract it at build time
which is required by the impact analysis.metas
- The metas to check for impact detection.void yield(@Nonnull P document)
ICreateAggregationHandler
. And it is optional for the current aggregated document being processed.document
- The document to yield.void yieldAndForward(P document)
document
- The document to yield.Copyright © 2013 Dassault Systèmes, All Rights Reserved.