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
ConstructorsConstructorDescriptionBooleanResultData(long hash, Boolean result, List<String> links, Exception exception) Creates an instance of aBooleanResultDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.result()Returns the value of theresultrecord 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.
-
Constructor Details
-
BooleanResultData
Creates an instance of aBooleanResultDatarecord class.- Parameters:
hash- the value for thehashrecord componentresult- the value for theresultrecord 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
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord 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
-