Module org.elasticsearch.xcore
Record Class DownsampleAfterBulkInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.downsample.DownsampleAfterBulkInfo
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public record DownsampleAfterBulkInfo(long currentTimeMillis, long executionId, long lastIngestTookInMillis, long lastTookInMillis, boolean hasFailures, int restStatusCode)
extends Record
implements NamedWriteable, org.elasticsearch.xcontent.ToXContentObject
This class includes statistics collected by the downsampling task after
a bulk indexing operation ends.
-
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
ConstructorsConstructorDescriptionDownsampleAfterBulkInfo(long currentTimeMillis, long executionId, long lastIngestTookInMillis, long lastTookInMillis, boolean hasFailures, int restStatusCode) Creates an instance of aDownsampleAfterBulkInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecurrentTimeMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionIdrecord component.static DownsampleAfterBulkInfofromXContent(org.elasticsearch.xcontent.XContentParser parser) booleanReturns the value of thehasFailuresrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastIngestTookInMillisrecord component.longReturns the value of thelastTookInMillisrecord component.intReturns the value of therestStatusCoderecord component.final StringtoString()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.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DownsampleAfterBulkInfo
- Throws:
IOException
-
DownsampleAfterBulkInfo
public DownsampleAfterBulkInfo(long currentTimeMillis, long executionId, long lastIngestTookInMillis, long lastTookInMillis, boolean hasFailures, int restStatusCode) Creates an instance of aDownsampleAfterBulkInforecord class.- Parameters:
currentTimeMillis- the value for thecurrentTimeMillisrecord componentexecutionId- the value for theexecutionIdrecord componentlastIngestTookInMillis- the value for thelastIngestTookInMillisrecord componentlastTookInMillis- the value for thelastTookInMillisrecord componenthasFailures- the value for thehasFailuresrecord componentrestStatusCode- the value for therestStatusCoderecord component
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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
-
fromXContent
public static DownsampleAfterBulkInfo fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
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. All components in this record class are compared with '=='. -
currentTimeMillis
public long currentTimeMillis()Returns the value of thecurrentTimeMillisrecord component.- Returns:
- the value of the
currentTimeMillisrecord component
-
executionId
public long executionId()Returns the value of theexecutionIdrecord component.- Returns:
- the value of the
executionIdrecord component
-
lastIngestTookInMillis
public long lastIngestTookInMillis()Returns the value of thelastIngestTookInMillisrecord component.- Returns:
- the value of the
lastIngestTookInMillisrecord component
-
lastTookInMillis
public long lastTookInMillis()Returns the value of thelastTookInMillisrecord component.- Returns:
- the value of the
lastTookInMillisrecord component
-
hasFailures
public boolean hasFailures()Returns the value of thehasFailuresrecord component.- Returns:
- the value of the
hasFailuresrecord component
-
restStatusCode
public int restStatusCode()Returns the value of therestStatusCoderecord component.- Returns:
- the value of the
restStatusCoderecord component
-