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 aInputResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the value of theepochMicrosFrom
record component.long
Returns the value of theepochMicrosTo
record component.final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.int
index()
Returns the value of theindex
record component.key()
Returns the value of thekey
record component.result()
Returns the value of theresult
record component.final String
toString()
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 aInputResult
record class.- Parameters:
key
- the value for thekey
record componentindex
- the value for theindex
record componentepochMicrosFrom
- the value for theepochMicrosFrom
record componentepochMicrosTo
- the value for theepochMicrosTo
record componentresult
- the value for theresult
record componenterror
- the value for theerror
record 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 thekey
record component.- Returns:
- the value of the
key
record component
-
index
public int index()Returns the value of theindex
record component.- Returns:
- the value of the
index
record component
-
epochMicrosFrom
public long epochMicrosFrom()Returns the value of theepochMicrosFrom
record component.- Returns:
- the value of the
epochMicrosFrom
record component
-
epochMicrosTo
public long epochMicrosTo()Returns the value of theepochMicrosTo
record component.- Returns:
- the value of the
epochMicrosTo
record component
-
result
Returns the value of theresult
record component.- Returns:
- the value of the
result
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-