Class DoubleSummaryDeserializer

java.lang.Object
org.apache.datasketches.tuple.adouble.DoubleSummaryDeserializer
All Implemented Interfaces:
SummaryDeserializer<DoubleSummary>

public class DoubleSummaryDeserializer extends Object implements SummaryDeserializer<DoubleSummary>
Implements SummaryDeserializer<DoubleSummary>
Author:
Lee Rhodes
  • Constructor Details

    • DoubleSummaryDeserializer

      public DoubleSummaryDeserializer()
      No argument constructor.
  • Method Details

    • heapifySummary

      public DeserializeResult<DoubleSummary> heapifySummary(MemorySegment seg)
      Description copied from interface: SummaryDeserializer
      This is to create an instance of a Summary given a serialized representation. The user may assume that the start of the given MemorySegment is the correct place to start deserializing. However, the user must be able to determine the number of bytes required to deserialize the summary as the capacity of the given MemorySegment may include multiple such summaries and may be much larger than required for a single summary.
      Specified by:
      heapifySummary in interface SummaryDeserializer<DoubleSummary>
      Parameters:
      seg - MemorySegment object with serialized representation of a Summary
      Returns:
      DeserializedResult object, which contains a Summary object and number of bytes read from the MemorySegment