Class StreamMetric

  • All Implemented Interfaces:
    java.io.Serializable

    public final class StreamMetric
    extends java.lang.Object
    implements java.io.Serializable
    Metrics associated with stream. It is periodically recorded.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamMetric​(long startTimeStamp, long endTimeStamp, long numOfTuples, long serializedReadBytes, boolean isReadNotSerializedData)  
    • Constructor Detail

      • StreamMetric

        public StreamMetric​(long startTimeStamp,
                            long endTimeStamp,
                            long numOfTuples,
                            long serializedReadBytes,
                            boolean isReadNotSerializedData)
        Parameters:
        startTimeStamp - the starting point from which metric is recorded.
        endTimeStamp - the endpoint from which metric is recorded.
        numOfTuples - the number of tuples processed between starting point and endpoint.
        serializedReadBytes - the number of read bytes processed between starting point and endpoint.
        isReadNotSerializedData - whether the task read data from local block or not.
    • Method Detail

      • getStartTimeStamp

        public long getStartTimeStamp()
        Get starting point of record period.
        Returns:
        start timestamp.
      • getEndTimeStamp

        public long getEndTimeStamp()
        Get endpoint of record period.
        Returns:
        end timestamp.
      • getNumOfProcessedTuples

        public long getNumOfProcessedTuples()
        Get the number of processed tuple.
        Returns:
        number of tuples.
      • getSerializedReadBytes

        public long getSerializedReadBytes()
        Get the number of read bytes.
        Returns:
        number of read bytes.
      • getIsReadNotSerializedData

        public boolean getIsReadNotSerializedData()
        Get a boolean value that indicates whether it read data from local block or not.
        Returns:
        a boolean value that indicates whether it read data form local block or not.