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
-
Method Summary
Modifier and TypeMethodDescriptionlong
bindings()
Returns the value of thebindings
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexception
record component.long
hash()
Returns the value of thehash
record component.final int
hashCode()
Returns a hash code value for this object.links()
Returns the value of thelinks
record component.long
results()
Returns the value of theresults
record component.toCSV()
Converts the data into CSV files.org.apache.jena.rdf.model.Model
toRDF()
Converts the data into an RDF model, which will be added to the appropriate storages.final String
toString()
Returns a string representation of this record class.Returns the value of thevariables
record component.
-
Constructor Details
-
ResultCountData
public ResultCountData(long hash, long results, long bindings, List<String> variables, List<String> links, Exception exception) Creates an instance of aResultCountData
record class.- Parameters:
hash
- the value for thehash
record componentresults
- the value for theresults
record componentbindings
- the value for thebindings
record componentvariables
- the value for thevariables
record componentlinks
- the value for thelinks
record componentexception
- the value for theexception
record component
-
-
Method Details
-
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 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.AsRDF
Converts the data into an RDF model, which will be added to the appropriate storages.- Specified by:
toRDF
in 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 thehash
record component.- Specified by:
hash
in interfaceLanguageProcessor.LanguageProcessingData
- Returns:
- the value of the
hash
record component
-
results
public long results()Returns the value of theresults
record component.- Returns:
- the value of the
results
record component
-
bindings
public long bindings()Returns the value of thebindings
record component.- Returns:
- the value of the
bindings
record component
-
variables
Returns the value of thevariables
record component.- Returns:
- the value of the
variables
record component
-
links
Returns the value of thelinks
record component.- Returns:
- the value of the
links
record component
-
exception
Returns the value of theexception
record component.- Specified by:
exception
in interfaceLanguageProcessor.LanguageProcessingData
- Returns:
- the value of the
exception
record component
-