Package org.aksw.iguana.cc.lang.impl
Record Class BooleanResultData
java.lang.Object
java.lang.Record
org.aksw.iguana.cc.lang.impl.BooleanResultData
- All Implemented Interfaces:
LanguageProcessor.LanguageProcessingData
,Storable
,Storable.AsCSV
,Storable.AsRDF
public record BooleanResultData(long hash, Boolean result, 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
ConstructorDescriptionBooleanResultData
(long hash, Boolean result, List<String> links, Exception exception) Creates an instance of aBooleanResultData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.result()
Returns the value of theresult
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.
-
Constructor Details
-
BooleanResultData
Creates an instance of aBooleanResultData
record class.- Parameters:
hash
- the value for thehash
record componentresult
- the value for theresult
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
-
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
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
-