|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the type of GCubeElement
.P
- the of Property
.public interface Projection<E extends GCubeElement,P extends Property>
Encapsulates a set of constraints over the Property
s of GCubeElement
s.
Projections are used to match whole documents.
This occurs when the properties of the GCubeElement
associated with the projection satisfy its constraints.
Projections and matching are used in the retrieval operations of Reader
s;
Reader
in order to:
(i) characterise documents with metadata elements that match both constraints, but to
(ii)retrieve of those documents only the name of matching metadata elements,
excluding other document properties, elements, or element properties.
Whether to include or filter, all constraints take the form of Predicate
s.
Method Summary | |
---|---|
java.util.Map<P,Predicate> |
constraints()
Returns all the include and filter constraints of the projection. |
TreePredicate |
documentPredicate()
Returns a TreePredicate that characterises documents which match the projection. |
TreePredicate |
predicate()
Returns a TreePredicate that characterises elements that match the projection. |
Method Detail |
---|
java.util.Map<P,Predicate> constraints()
TreePredicate documentPredicate()
TreePredicate
that characterises documents which match the projection.
TreePredicate predicate()
TreePredicate
that characterises elements that match the projection.
This method behaves like documentPredicate()
if the projection is defined over documents. It differs if it
is defined over inner elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |