Record Class ResultCountData

java.lang.Object
java.lang.Record
org.aksw.iguana.cc.lang.impl.ResultCountData
All Implemented Interfaces:
LanguageProcessor.LanguageProcessingData, Storable, Storable.AsCSV, Storable.AsRDF

public record ResultCountData(long hash, long results, long bindings, List<String> variables, List<String> links, Exception exception) extends Record implements LanguageProcessor.LanguageProcessingData, Storable.AsCSV, Storable.AsRDF
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.aksw.iguana.cc.storage.Storable

    Storable.AsCSV, Storable.AsRDF, Storable.CSVData
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResultCountData(long hash, long results, long bindings, List<String> variables, List<String> links, Exception exception)
    Creates an instance of a ResultCountData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the bindings record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the exception record component.
    long
    Returns the value of the hash record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the links record component.
    long
    Returns the value of the results record component.
    Converts the data into CSV files.
    org.apache.jena.rdf.model.Model
    Converts the data into an RDF model, which will be added to the appropriate storages.
    final String
    Returns a string representation of this record class.
    Returns the value of the variables record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ResultCountData

      public ResultCountData(long hash, long results, long bindings, List<String> variables, List<String> links, Exception exception)
      Creates an instance of a ResultCountData record class.
      Parameters:
      hash - the value for the hash record component
      results - the value for the results record component
      bindings - the value for the bindings record component
      variables - the value for the variables record component
      links - the value for the links record component
      exception - the value for the exception record component
  • Method Details

    • toCSV

      public Storable.CSVData toCSV()
      Description copied from interface: Storable.AsCSV
      Converts the data into CSV files. The key of the map contains the file name for the linked entries.
      Specified by:
      toCSV in interface Storable.AsCSV
      Returns:
      CSVFileData list which contains all the files and their data that should be created and stored
    • toRDF

      public org.apache.jena.rdf.model.Model toRDF()
      Description copied from interface: Storable.AsRDF
      Converts the data into an RDF model, which will be added to the appropriate storages.
      Specified by:
      toRDF in interface Storable.AsRDF
      Returns:
      RDF model that contains the data
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hash

      public long hash()
      Returns the value of the hash record component.
      Specified by:
      hash in interface LanguageProcessor.LanguageProcessingData
      Returns:
      the value of the hash record component
    • results

      public long results()
      Returns the value of the results record component.
      Returns:
      the value of the results record component
    • bindings

      public long bindings()
      Returns the value of the bindings record component.
      Returns:
      the value of the bindings record component
    • variables

      public List<String> variables()
      Returns the value of the variables record component.
      Returns:
      the value of the variables record component
    • links

      public List<String> links()
      Returns the value of the links record component.
      Returns:
      the value of the links record component
    • exception

      public Exception exception()
      Returns the value of the exception record component.
      Specified by:
      exception in interface LanguageProcessor.LanguageProcessingData
      Returns:
      the value of the exception record component