Class AggJsonProperty
java.lang.Object
org.aksw.jenax.io.json.accumulator.AggJsonProperty
- All Implemented Interfaces:
AggJson,AggJsonEdge
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected org.apache.jena.sparql.path.P_Path0The property (json key) being aggregatedprotected org.apache.jena.graph.Nodeprotected AggJsonNodeThe aggregator for the value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAggJsonProperty(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.path.P_Path0org.apache.jena.graph.NodeAn edge-based aggregator must declare which edge id it matchesbooleanstatic AggJsonPropertyof(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward) static AggJsonPropertyof(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator) static AggJsonPropertyof(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward) static AggJsonPropertyof(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator) setSingle(boolean value) Only for testing; should not be used in production codesetTargetAgg(AggJsonNode targetAggregator)
-
Field Details
-
jsonKey
protected org.apache.jena.sparql.path.P_Path0 jsonKeyThe property (json key) being aggregated -
matchFieldId
protected org.apache.jena.graph.Node matchFieldId -
isForward
protected boolean isForward -
isSingle
protected boolean isSingle -
targetAggregator
The aggregator for the value
-
-
Constructor Details
-
AggJsonProperty
protected AggJsonProperty(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator)
-
-
Method Details
-
of
public static AggJsonProperty of(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward) -
of
public static AggJsonProperty of(org.apache.jena.graph.Node jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator) -
of
public static AggJsonProperty of(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward) -
of
public static AggJsonProperty of(org.apache.jena.sparql.path.P_Path0 jsonKey, org.apache.jena.graph.Node matchFieldId, boolean isForward, AggJsonNode targetAggregator) -
newAccumulator
- Specified by:
newAccumulatorin interfaceAggJson- Specified by:
newAccumulatorin interfaceAggJsonEdge
-
getMatchFieldId
public org.apache.jena.graph.Node getMatchFieldId()Description copied from interface:AggJsonEdgeAn edge-based aggregator must declare which edge id it matches- Specified by:
getMatchFieldIdin interfaceAggJsonEdge
-
getJsonKey
public org.apache.jena.sparql.path.P_Path0 getJsonKey() -
isForward
public boolean isForward() -
getTargetAggregator
-
setTargetAgg
- Specified by:
setTargetAggin interfaceAggJsonEdge
-
setSingle
Only for testing; should not be used in production code
-