Class AccJsonObjectLikeBase

java.lang.Object
org.aksw.jenax.io.json.accumulator.AccJsonBase
org.aksw.jenax.io.json.accumulator.AccJsonObjectLikeBase
All Implemented Interfaces:
AccJson, AccJsonNode, AccJsonObjectLike
Direct Known Subclasses:
AccJsonFragmentBody, AccJsonObject

public abstract class AccJsonObjectLikeBase extends AccJsonBase implements AccJsonObjectLike
Common base class for accumulators of Objects and Fragments.
  • Field Details

    • fieldIdToIndex

      protected Map<org.apache.jena.graph.Node,Integer> fieldIdToIndex
    • edgeAccs

      protected AccJsonEdge[] edgeAccs
    • currentFieldIndex

      protected int currentFieldIndex
    • currentFieldAcc

      protected AccJsonEdge currentFieldAcc
  • Constructor Details

    • AccJsonObjectLikeBase

      protected AccJsonObjectLikeBase(Map<org.apache.jena.graph.Node,Integer> fieldIdToIndex, AccJsonEdge[] edgeAccs)
  • Method Details

    • getPath

      public org.aksw.commons.path.json.PathJson getPath()
      Specified by:
      getPath in interface AccJson
    • addEdge

      public void addEdge(AccJsonEdge subAcc)
      Internal method, use only for debugging/testing
    • acceptContribution

      public void acceptContribution(RdfElement value, AccContextRdf context)
      Description copied from interface: AccJson
      For materialization: Whenever end() is called on a state with materialization enabled, then it passes its accumulated value to the parent using this method.
      Specified by:
      acceptContribution in interface AccJson