Module org.elasticsearch.xcore
Record Class DownsampleShardPersistentTaskState
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.downsample.DownsampleShardPersistentTaskState
- Record Components:
downsampleShardIndexerStatus- An instance ofDownsampleShardIndexerStatuswith the downsampleShardIndexerStatus of the downsample tasktsid- The latest successfully processed tsid component of a tuple (tsid, timestamp)
- All Implemented Interfaces:
NamedWriteable,Writeable,PersistentTaskState,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public record DownsampleShardPersistentTaskState(DownsampleShardIndexerStatus downsampleShardIndexerStatus, org.apache.lucene.util.BytesRef tsid)
extends Record
implements PersistentTaskState
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.elasticsearch.xcontent.ObjectParser<DownsampleShardPersistentTaskState.Builder, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDownsampleShardPersistentTaskState(DownsampleShardIndexerStatus downsampleShardIndexerStatus, org.apache.lucene.util.BytesRef tsid) Creates an instance of aDownsampleShardPersistentTaskStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleandone()Returns the value of thedownsampleShardIndexerStatusrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfailed()fromXContent(org.elasticsearch.xcontent.XContentParser parser) final inthashCode()Returns a hash code value for this object.booleanstarted()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) org.apache.lucene.util.BytesReftsid()Returns the value of thetsidrecord component.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:
-
PARSER
public static final org.elasticsearch.xcontent.ObjectParser<DownsampleShardPersistentTaskState.Builder,Void> PARSER
-
-
Constructor Details
-
DownsampleShardPersistentTaskState
- Throws:
IOException
-
DownsampleShardPersistentTaskState
public DownsampleShardPersistentTaskState(DownsampleShardIndexerStatus downsampleShardIndexerStatus, org.apache.lucene.util.BytesRef tsid) Creates an instance of aDownsampleShardPersistentTaskStaterecord class.- Parameters:
downsampleShardIndexerStatus- the value for thedownsampleShardIndexerStatusrecord componenttsid- the value for thetsidrecord component
-
-
Method Details
-
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
-
downsampleShardIndexerStatus
Returns the value of thedownsampleShardIndexerStatusrecord component.- Returns:
- the value of the
downsampleShardIndexerStatusrecord component
-
done
public boolean done() -
started
public boolean started() -
cancelled
public boolean cancelled() -
failed
public boolean failed() -
readFromStream
- Throws:
IOException
-
fromXContent
public static DownsampleShardPersistentTaskState 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 withObjects::equals(Object,Object). -
tsid
public org.apache.lucene.util.BytesRef tsid()Returns the value of thetsidrecord component.- Returns:
- the value of the
tsidrecord component
-