Module org.elasticsearch.compute
Record Class TsInfoOperator.Status
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.TsInfoOperator.Status
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,Operator.Status,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
TsInfoOperator
public static record TsInfoOperator.Status(TsInfoOperator.Mode mode, int pagesReceived, long rowsReceived, long rowsEmitted, int entriesAccumulated)
extends Record
implements Operator.Status
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionStatus(TsInfoOperator.Mode mode, int pagesReceived, long rowsReceived, long rowsEmitted, int entriesAccumulated) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theentriesAccumulatedrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.intReturns the value of thepagesReceivedrecord component.longReturns the value of therowsEmittedrecord component.longReturns the value of therowsReceivedrecord component.booleansupportsVersion(TransportVersion version) toString()Returns a string representation of this record class.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.compute.operator.Operator.Status
documentsFound, valuesLoadedMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
ENTRY
-
-
Constructor Details
-
Status
public Status(TsInfoOperator.Mode mode, int pagesReceived, long rowsReceived, long rowsEmitted, int entriesAccumulated) Creates an instance of aStatusrecord class.- Parameters:
mode- the value for themoderecord componentpagesReceived- the value for thepagesReceivedrecord componentrowsReceived- the value for therowsReceivedrecord componentrowsEmitted- the value for therowsEmittedrecord componententriesAccumulated- the value for theentriesAccumulatedrecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
supportsVersion
- Specified by:
supportsVersionin interfaceVersionedNamedWriteable
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
pagesReceived
public int pagesReceived()Returns the value of thepagesReceivedrecord component.- Returns:
- the value of the
pagesReceivedrecord component
-
rowsReceived
public long rowsReceived()Returns the value of therowsReceivedrecord component.- Returns:
- the value of the
rowsReceivedrecord component
-
rowsEmitted
public long rowsEmitted()Returns the value of therowsEmittedrecord component.- Returns:
- the value of the
rowsEmittedrecord component
-
entriesAccumulated
public int entriesAccumulated()Returns the value of theentriesAccumulatedrecord component.- Returns:
- the value of the
entriesAccumulatedrecord component
-