Record Class OProfilerEntrySnapshot

java.lang.Object
java.lang.Record
com.orientechnologies.common.profiler.OProfilerEntrySnapshot

public record OProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    OProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset)
    Creates an instance of a OProfilerEntrySnapshot record class.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    long
    Returns the value of the entries record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the firstExecution record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the last record component.
    long
    Returns the value of the lastExecution record component.
    long
    Returns the value of the lastReset record component.
    long
    Returns the value of the lastResetEntries record component.
    long
    max()
    Returns the value of the max record component.
    long
    min()
    Returns the value of the min record component.
     
     
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the total record component.
    void
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OProfilerEntrySnapshot

      public OProfilerEntrySnapshot(ODocument doc)
    • OProfilerEntrySnapshot

      public OProfilerEntrySnapshot(long entries, long last, long min, long max, long total, long firstExecution, long lastExecution, long lastResetEntries, long lastReset)
      Creates an instance of a OProfilerEntrySnapshot record class.
      Parameters:
      entries - the value for the entries record component
      last - the value for the last record component
      min - the value for the min record component
      max - the value for the max record component
      total - the value for the total record component
      firstExecution - the value for the firstExecution record component
      lastExecution - the value for the lastExecution record component
      lastResetEntries - the value for the lastResetEntries record component
      lastReset - the value for the lastReset record component
  • Method Details

    • writeNetwork

      public void writeNetwork(DataOutput out) throws IOException
      Throws:
      IOException
    • readNetwork

      public static OProfilerEntrySnapshot readNetwork(DataInput input) throws IOException
      Throws:
      IOException
    • toDocument

      public ODocument toDocument()
    • average

      public float average()
    • 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 '=='.
      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.
    • entries

      public long entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • last

      public long last()
      Returns the value of the last record component.
      Returns:
      the value of the last record component
    • min

      public long min()
      Returns the value of the min record component.
      Returns:
      the value of the min record component
    • max

      public long max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component
    • total

      public long total()
      Returns the value of the total record component.
      Returns:
      the value of the total record component
    • firstExecution

      public long firstExecution()
      Returns the value of the firstExecution record component.
      Returns:
      the value of the firstExecution record component
    • lastExecution

      public long lastExecution()
      Returns the value of the lastExecution record component.
      Returns:
      the value of the lastExecution record component
    • lastResetEntries

      public long lastResetEntries()
      Returns the value of the lastResetEntries record component.
      Returns:
      the value of the lastResetEntries record component
    • lastReset

      public long lastReset()
      Returns the value of the lastReset record component.
      Returns:
      the value of the lastReset record component