Class SqlBucket


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200630")
    public final class SqlBucket
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Sql bucket type object.
    Note: Objects should always be created or deserialized using the SqlBucket.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the SqlBucket.Builder, which maintain a set of all explicitly set fields called SqlBucket.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Constructor Detail

      • SqlBucket

        @Deprecated
        @ConstructorProperties({"version","databaseType","timeCollected","sqlIdentifier","planHash","bucketId","executionsCount","cpuTimeInSec","ioTimeInSec","otherWaitTimeInSec","totalTimeInSec"})
        public SqlBucket​(Float version,
                         String databaseType,
                         Date timeCollected,
                         String sqlIdentifier,
                         Long planHash,
                         String bucketId,
                         Integer executionsCount,
                         Float cpuTimeInSec,
                         Float ioTimeInSec,
                         Float otherWaitTimeInSec,
                         Float totalTimeInSec)
        Deprecated.
    • Method Detail

      • getVersion

        public Float getVersion()
        Version Example: 1
        Returns:
        the value
      • getDatabaseType

        public String getDatabaseType()
        Ops Insights internal representation of the database type.
        Returns:
        the value
      • getTimeCollected

        public Date getTimeCollected()
        Collection timestamp Example: “2020-03-31T00:00:00.000Z”
        Returns:
        the value
      • getSqlIdentifier

        public String getSqlIdentifier()
        Unique SQL_ID for a SQL Statement.
        Returns:
        the value
      • getPlanHash

        public Long getPlanHash()
        Plan hash value for the SQL Execution Plan
        Returns:
        the value
      • getBucketId

        public String getBucketId()
        SQL Bucket ID, examples <= 3 secs, 3-10 secs, 10-60 secs, 1-5 min, > 5 min Example: “<= 3 secs”
        Returns:
        the value
      • getExecutionsCount

        public Integer getExecutionsCount()
        Total number of executions Example: 60
        Returns:
        the value
      • getCpuTimeInSec

        public Float getCpuTimeInSec()
        Total CPU time Example: 1046
        Returns:
        the value
      • getIoTimeInSec

        public Float getIoTimeInSec()
        Total IO time Example: 5810
        Returns:
        the value
      • getOtherWaitTimeInSec

        public Float getOtherWaitTimeInSec()
        Total other wait time Example: 24061
        Returns:
        the value
      • getTotalTimeInSec

        public Float getTotalTimeInSec()
        Total time Example: 30917
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel