Module org.elasticsearch.xcore
Record Class DownsampleBulkInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.downsample.DownsampleBulkInfo
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public record DownsampleBulkInfo(long totalBulkCount, long bulkIngestSumMillis, long maxBulkIngestMillis, long minBulkIngestMillis, long bulkTookSumMillis, long maxBulkTookMillis, long minBulkTookMillis)
extends Record
implements NamedWriteable, org.elasticsearch.xcontent.ToXContentObject
This class includes statistics collected by the downsampling task
for bulk indexing operations.
-
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
ConstructorsConstructorDescriptionDownsampleBulkInfo(long totalBulkCount, long bulkIngestSumMillis, long maxBulkIngestMillis, long minBulkIngestMillis, long bulkTookSumMillis, long maxBulkTookMillis, long minBulkTookMillis) Creates an instance of aDownsampleBulkInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebulkIngestSumMillisrecord component.longReturns the value of thebulkTookSumMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.static DownsampleBulkInfofromXContext(org.elasticsearch.xcontent.XContentParser parser) final inthashCode()Returns a hash code value for this object.longReturns the value of themaxBulkIngestMillisrecord component.longReturns the value of themaxBulkTookMillisrecord component.longReturns the value of theminBulkIngestMillisrecord component.longReturns the value of theminBulkTookMillisrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBulkCountrecord component.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
-
DownsampleBulkInfo
- Throws:
IOException
-
DownsampleBulkInfo
public DownsampleBulkInfo(long totalBulkCount, long bulkIngestSumMillis, long maxBulkIngestMillis, long minBulkIngestMillis, long bulkTookSumMillis, long maxBulkTookMillis, long minBulkTookMillis) Creates an instance of aDownsampleBulkInforecord class.- Parameters:
totalBulkCount- the value for thetotalBulkCountrecord componentbulkIngestSumMillis- the value for thebulkIngestSumMillisrecord componentmaxBulkIngestMillis- the value for themaxBulkIngestMillisrecord componentminBulkIngestMillis- the value for theminBulkIngestMillisrecord componentbulkTookSumMillis- the value for thebulkTookSumMillisrecord componentmaxBulkTookMillis- the value for themaxBulkTookMillisrecord componentminBulkTookMillis- the value for theminBulkTookMillisrecord component
-
-
Method Details
-
fromXContext
public static DownsampleBulkInfo fromXContext(org.elasticsearch.xcontent.XContentParser parser) throws IOException - 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
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- 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 '=='. -
totalBulkCount
public long totalBulkCount()Returns the value of thetotalBulkCountrecord component.- Returns:
- the value of the
totalBulkCountrecord component
-
bulkIngestSumMillis
public long bulkIngestSumMillis()Returns the value of thebulkIngestSumMillisrecord component.- Returns:
- the value of the
bulkIngestSumMillisrecord component
-
maxBulkIngestMillis
public long maxBulkIngestMillis()Returns the value of themaxBulkIngestMillisrecord component.- Returns:
- the value of the
maxBulkIngestMillisrecord component
-
minBulkIngestMillis
public long minBulkIngestMillis()Returns the value of theminBulkIngestMillisrecord component.- Returns:
- the value of the
minBulkIngestMillisrecord component
-
bulkTookSumMillis
public long bulkTookSumMillis()Returns the value of thebulkTookSumMillisrecord component.- Returns:
- the value of the
bulkTookSumMillisrecord component
-
maxBulkTookMillis
public long maxBulkTookMillis()Returns the value of themaxBulkTookMillisrecord component.- Returns:
- the value of the
maxBulkTookMillisrecord component
-
minBulkTookMillis
public long minBulkTookMillis()Returns the value of theminBulkTookMillisrecord component.- Returns:
- the value of the
minBulkTookMillisrecord component
-