Record Class WriteObj
java.lang.Object
java.lang.Record
org.apache.polaris.persistence.nosql.api.backend.WriteObj
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreatedAtMicrosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.intpart()Returns the value of thepartrecord component.intpartNum()Returns the value of thepartNumrecord component.byte[]Returns the value of theserializedrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
WriteObj
public WriteObj(String type, long id, int part, long createdAtMicros, byte[] serialized, int partNum) Creates an instance of aWriteObjrecord class.- Parameters:
type- the value for thetyperecord componentid- the value for theidrecord componentpart- the value for thepartrecord componentcreatedAtMicros- the value for thecreatedAtMicrosrecord componentserialized- the value for theserializedrecord componentpartNum- the value for thepartNumrecord 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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
part
public int part()Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
createdAtMicros
public long createdAtMicros()Returns the value of thecreatedAtMicrosrecord component.- Returns:
- the value of the
createdAtMicrosrecord component
-
serialized
public byte[] serialized()Returns the value of theserializedrecord component.- Returns:
- the value of the
serializedrecord component
-
partNum
public int partNum()Returns the value of thepartNumrecord component.- Returns:
- the value of the
partNumrecord component
-