public class NumericLiteralComparator extends Object implements AggregationComparator
Constructor and Description |
---|
NumericLiteralComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(de.fuberlin.wiwiss.ng4j.Quad quad1,
de.fuberlin.wiwiss.ng4j.Quad quad2,
NamedGraphMetadataMap metadata)
Compares two quads for order.
|
boolean |
isAggregable(de.fuberlin.wiwiss.ng4j.Quad quad)
Returns true iff the comparison is applicable to the given quad.
|
public boolean isAggregable(de.fuberlin.wiwiss.ng4j.Quad quad)
AggregationComparator
isAggregable
in interface AggregationComparator
quad
- a quadpublic int compare(de.fuberlin.wiwiss.ng4j.Quad quad1, de.fuberlin.wiwiss.ng4j.Quad quad2, NamedGraphMetadataMap metadata)
AggregationComparator
AggregationComparator.isAggregable(Quad)
first.compare
in interface AggregationComparator
quad1
- first compared quad; AggregationComparator.isAggregable(Quad)
must return true for the quadquad2
- second compared quad; AggregationComparator.isAggregable(Quad)
must return true for the quadmetadata
- metadata for named graphs containing the quads being resolvedCopyright © 2013. All Rights Reserved.