Package de.uni_kiel.rz.fdr.repl
Record Class REPLJob.InputResult
java.lang.Object
java.lang.Record
de.uni_kiel.rz.fdr.repl.REPLJob.InputResult
- Record Components:
key- The key of the job that produced this resultindex- The index of the item in the input list of the jobepochMicrosFrom- Timestamp when we started processing this result's inputepochMicrosTo- Timestamp when we finished processing this result's input, generating this recordresult- The result of this inputerror- Any exception that was thrown during processing
- All Implemented Interfaces:
Serializable
- Enclosing class:
- REPLJob
public static record REPLJob.InputResult(String key, int index, long epochMicrosFrom, long epochMicrosTo, Serializable result, Exception error)
extends Record
implements Serializable
A record containing a job's results for one single input item.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputResult(String key, int index, long epochMicrosFrom, long epochMicrosTo, Serializable result, Exception error) Creates an instance of aInputResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theepochMicrosFromrecord component.longReturns the value of theepochMicrosTorecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.key()Returns the value of thekeyrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputResult
public InputResult(String key, int index, long epochMicrosFrom, long epochMicrosTo, Serializable result, Exception error) Creates an instance of aInputResultrecord class.- Parameters:
key- the value for thekeyrecord componentindex- the value for theindexrecord componentepochMicrosFrom- the value for theepochMicrosFromrecord componentepochMicrosTo- the value for theepochMicrosTorecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
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 '=='. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
epochMicrosFrom
public long epochMicrosFrom()Returns the value of theepochMicrosFromrecord component.- Returns:
- the value of the
epochMicrosFromrecord component
-
epochMicrosTo
public long epochMicrosTo()Returns the value of theepochMicrosTorecord component.- Returns:
- the value of the
epochMicrosTorecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-