Record Class BulkItem
java.lang.Object
java.lang.Record
codes.grow.packages.openobserve.logs.BulkItem
- Record Components:
action- action key reported by the server (indexalso forcreate)index- streamstatus- per-item HTTP status (200 stored, 4xx rejected)error-"<type>: <reason>"for a rejected item
public record BulkItem(String action, String index, int status, Optional<String> error)
extends Record
Outcome of one bulk action.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord 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.index()Returns the value of theindexrecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkItem
Normalizes a null error.- Parameters:
action- actionindex- streamstatus- statuserror- error
-
-
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 '=='. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
status
public int status()Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-