Module org.elasticsearch.compute
Record Class SampleOperator.Status
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.SampleOperator.Status
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,Operator.Status,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
SampleOperator
public static record SampleOperator.Status(long collectNanos, long emitNanos, int pagesProcessed, long rowsReceived, long rowsEmitted)
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(long collectNanos, long emitNanos, int pagesProcessed, long rowsReceived, long rowsEmitted) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecollectNanosrecord component.longReturns the value of theemitNanosrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intReturns the value of thepagesProcessedrecord 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(long collectNanos, long emitNanos, int pagesProcessed, long rowsReceived, long rowsEmitted) Creates an instance of aStatusrecord class.- Parameters:
collectNanos- the value for thecollectNanosrecord componentemitNanos- the value for theemitNanosrecord componentpagesProcessed- the value for thepagesProcessedrecord componentrowsReceived- the value for therowsReceivedrecord componentrowsEmitted- the value for therowsEmittedrecord 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. All components in this record class 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
-
collectNanos
public long collectNanos()Returns the value of thecollectNanosrecord component.- Returns:
- the value of the
collectNanosrecord component
-
emitNanos
public long emitNanos()Returns the value of theemitNanosrecord component.- Returns:
- the value of the
emitNanosrecord component
-
pagesProcessed
public int pagesProcessed()Returns the value of thepagesProcessedrecord component.- Returns:
- the value of the
pagesProcessedrecord 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
-