Record Components:
infos
- only non-null on the primary node
Holds incRef'd file level details for one point-in-time segment infos on the primary node.
WARNING: This API is experimental and might change in incompatible ways in the next release.
Constructor Summary
Constructors
Creates an instance of a CopyState
record class.
Method Summary
All Methods Instance Methods Concrete Methods
Returns the value of the completedMergeFiles
record component.
final boolean
Indicates whether some other object is "equal to" this one.
Returns the value of the files
record component.
long
Returns the value of the gen
record component.
final int
Returns a hash code value for this object.
Returns the value of the
infos
record component.
byte[]
Returns the value of the infosBytes
record component.
long
Returns the value of the primaryGen
record component.
Returns a string representation of this record class.
long
Returns the value of the version
record component.
Constructor Details
CopyState
Creates an instance of a CopyState
record class.
Parameters:
files
- the value for the files
record component
version
- the value for the version
record component
gen
- the value for the gen
record component
infosBytes
- the value for the infosBytes
record component
completedMergeFiles
- the value for the completedMergeFiles
record component
primaryGen
- the value for the primaryGen
record component
infos
- the value for the infos
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.
Specified by:
toString
in class Record
Returns:
a string representation of this object
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.
Specified by:
hashCode
in class Record
Returns:
a hash code value for this object
equals
public final boolean equals (Object o)
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 with
Objects::equals(Object,Object)
; primitive components are compared with '=='.
Specified by:
equals
in class Record
Parameters:
o
- the object with which to compare
Returns:
true
if this object is the same as the o
argument; false
otherwise.
files
Returns the value of the files
record component.
Returns:
the value of the files
record component
version
public long version ()
Returns the value of the version
record component.
Returns:
the value of the version
record component
gen
public long gen ()
Returns the value of the gen
record component.
Returns:
the value of the gen
record component
infosBytes
public byte[] infosBytes ()
Returns the value of the infosBytes
record component.
Returns:
the value of the infosBytes
record component
completedMergeFiles
Returns the value of the completedMergeFiles
record component.
Returns:
the value of the completedMergeFiles
record component
primaryGen
public long primaryGen ()
Returns the value of the primaryGen
record component.
Returns:
the value of the primaryGen
record component
infos
Returns the value of the
infos
record component.
Returns:
the value of the infos
record component