Interface RelationalRecordSink

All Known Implementing Classes:
RegTapLoader

public interface RelationalRecordSink
Optional destination (e.g. the RegTAP relational database) for individual harvested resources. Implementations exist only when the corresponding feature is enabled.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResource(String resourceXml)
    Add or replace a single resource.
    void
    addResource(Node resourceXml)
    Add or replace a single resource.
    void
    deleteResource(String identifier)
    Remove the resource with the given identifier.
  • Method Details

    • addResource

      void addResource(String resourceXml) throws Exception
      Add or replace a single resource.
      Parameters:
      resourceXml - an ri:Resources document containing exactly one ri:Resource.
      Throws:
      Exception - if the resource cannot be stored; the failure affects only this resource.
    • addResource

      void addResource(Node resourceXml) throws Exception
      Add or replace a single resource.
      Parameters:
      resourceXml - DOM of a ri:Resource.
      Throws:
      Exception - if the resource cannot be stored; the failure affects only this resource.
    • deleteResource

      void deleteResource(String identifier)
      Remove the resource with the given identifier.
      Parameters:
      identifier - the IVOA identifier.