Module org.elasticsearch.xcore
Record Class DownsampleBeforeBulkInfo
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.downsample.DownsampleBeforeBulkInfo
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public record DownsampleBeforeBulkInfo(long currentTimeMillis, long executionId, long estimatedSizeInBytes, int numberOfActions)
extends Record
implements NamedWriteable, org.elasticsearch.xcontent.ToXContentObject
This class includes statistics collected by the downsampling task before
a bulk indexing operation starts.
-
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
ConstructorsConstructorDescriptionDownsampleBeforeBulkInfo(long currentTimeMillis, long executionId, long estimatedSizeInBytes, int numberOfActions) Creates an instance of aDownsampleBeforeBulkInforecord 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 theestimatedSizeInBytesrecord component.longReturns the value of theexecutionIdrecord component.static DownsampleBeforeBulkInfofromXContent(org.elasticsearch.xcontent.XContentParser parser) final inthashCode()Returns a hash code value for this object.intReturns the value of thenumberOfActionsrecord 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
-
DownsampleBeforeBulkInfo
- Throws:
IOException
-
DownsampleBeforeBulkInfo
public DownsampleBeforeBulkInfo(long currentTimeMillis, long executionId, long estimatedSizeInBytes, int numberOfActions) Creates an instance of aDownsampleBeforeBulkInforecord class.- Parameters:
currentTimeMillis- the value for thecurrentTimeMillisrecord componentexecutionId- the value for theexecutionIdrecord componentestimatedSizeInBytes- the value for theestimatedSizeInBytesrecord componentnumberOfActions- the value for thenumberOfActionsrecord 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 DownsampleBeforeBulkInfo 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
-
estimatedSizeInBytes
public long estimatedSizeInBytes()Returns the value of theestimatedSizeInBytesrecord component.- Returns:
- the value of the
estimatedSizeInBytesrecord component
-
numberOfActions
public int numberOfActions()Returns the value of thenumberOfActionsrecord component.- Returns:
- the value of the
numberOfActionsrecord component
-