Record Class IngestStats

java.lang.Object
java.lang.Record
org.elasticsearch.ingest.IngestStats
All Implemented Interfaces:
Writeable, ChunkedToXContent

public record IngestStats(IngestStats.Stats totalStats, List<IngestStats.PipelineStat> pipelineStats, Map<String,List<IngestStats.ProcessorStat>> processorStats) extends Record implements Writeable, ChunkedToXContent
  • Field Details

  • Constructor Details

    • IngestStats

      public IngestStats(IngestStats.Stats totalStats, List<IngestStats.PipelineStat> pipelineStats, Map<String,List<IngestStats.ProcessorStat>> processorStats)
      Creates an instance of a IngestStats record class.
      Parameters:
      totalStats - the value for the totalStats record component
      pipelineStats - the value for the pipelineStats record component
      processorStats - the value for the processorStats record component
  • Method Details

    • read

      public static IngestStats read(StreamInput in) throws IOException
      Read from a stream.
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContentChunked

      public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params outerParams)
      Description copied from interface: ChunkedToXContent
      Create an iterator of ToXContent chunks for a REST response. Each chunk is serialized with the same XContentBuilder and ToXContent.Params, which is also the same as the ToXContent.Params passed as the params argument. For best results, all chunks should be O(1) size. The last chunk in the iterator must always yield at least one byte of output. See also ChunkedToXContentHelper for some handy utilities.

      Note that chunked response bodies cannot send deprecation warning headers once transmission has started, so implementations must check for deprecated feature use before returning.

      Specified by:
      toXContentChunked in interface ChunkedToXContent
      Returns:
      iterator over chunks of ToXContent
    • merge

      public static IngestStats merge(IngestStats first, IngestStats second)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • totalStats

      public IngestStats.Stats totalStats()
      Returns the value of the totalStats record component.
      Returns:
      the value of the totalStats record component
    • pipelineStats

      public List<IngestStats.PipelineStat> pipelineStats()
      Returns the value of the pipelineStats record component.
      Returns:
      the value of the pipelineStats record component
    • processorStats

      public Map<String,List<IngestStats.ProcessorStat>> processorStats()
      Returns the value of the processorStats record component.
      Returns:
      the value of the processorStats record component