Package org.aksw.iguana.cc.lang.impl
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 -
Method Summary
Modifier and TypeMethodDescriptionlongbindings()Returns the value of thebindingsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionrecord component.longhash()Returns the value of thehashrecord component.final inthashCode()Returns a hash code value for this object.links()Returns the value of thelinksrecord component.longresults()Returns the value of theresultsrecord component.toCSV()Converts the data into CSV files.org.apache.jena.rdf.model.ModeltoRDF()Converts the data into an RDF model, which will be added to the appropriate storages.final StringtoString()Returns a string representation of this record class.Returns the value of thevariablesrecord component.
-
Constructor Details
-
ResultCountData
public ResultCountData(long hash, long results, long bindings, List<String> variables, List<String> links, Exception exception) Creates an instance of aResultCountDatarecord class.- Parameters:
hash- the value for thehashrecord componentresults- the value for theresultsrecord componentbindings- the value for thebindingsrecord componentvariables- the value for thevariablesrecord componentlinks- the value for thelinksrecord componentexception- the value for theexceptionrecord component
-
-
Method Details
-
toCSV
Description copied from interface:Storable.AsCSVConverts the data into CSV files. The key of the map contains the file name for the linked entries.- Specified by:
toCSVin interfaceStorable.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.AsRDFConverts the data into an RDF model, which will be added to the appropriate storages.- Specified by:
toRDFin interfaceStorable.AsRDF- Returns:
- RDF model that contains the data
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
hash
public long hash()Returns the value of thehashrecord component.- Specified by:
hashin interfaceLanguageProcessor.LanguageProcessingData- Returns:
- the value of the
hashrecord component
-
results
public long results()Returns the value of theresultsrecord component.- Returns:
- the value of the
resultsrecord component
-
bindings
public long bindings()Returns the value of thebindingsrecord component.- Returns:
- the value of the
bindingsrecord component
-
variables
Returns the value of thevariablesrecord component.- Returns:
- the value of the
variablesrecord component
-
links
Returns the value of thelinksrecord component.- Returns:
- the value of the
linksrecord component
-
exception
Returns the value of theexceptionrecord component.- Specified by:
exceptionin interfaceLanguageProcessor.LanguageProcessingData- Returns:
- the value of the
exceptionrecord component
-