Class TableInfo

  • All Implemented Interfaces:
    Info

    public class TableInfo
    extends java.lang.Object
    implements Info
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicLong _DeleteCount  
      protected java.util.concurrent.atomic.AtomicLong _DeleteNano  
      protected java.util.concurrent.atomic.AtomicLong _DeleteRecords  
      protected java.util.concurrent.atomic.AtomicLong _InsertCount  
      protected java.util.concurrent.atomic.AtomicLong _InsertNano  
      protected java.util.concurrent.atomic.AtomicLong _InsertRecords  
      protected java.lang.String _Name  
      protected java.util.concurrent.atomic.AtomicLong _SelectCount  
      protected java.util.concurrent.atomic.AtomicLong _SelectNano  
      protected java.util.concurrent.atomic.AtomicLong _SelectRecords  
      protected java.util.concurrent.atomic.AtomicLong _UpdateCount  
      protected java.util.concurrent.atomic.AtomicLong _UpdateNano  
      protected java.util.concurrent.atomic.AtomicLong _UpdateRecords  
    • Constructor Summary

      Constructors 
      Constructor Description
      TableInfo​(java.lang.String Name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(StatementType Type, long nano, int Count)  
      protected void addDelete​(long nano, int Count)  
      protected void addInsert​(long nano, int Count)  
      protected void addSelect​(long nano, int Count)  
      protected void addUpdate​(long nano, int Count)  
      long getCountTotal()  
      java.lang.String getName()  
      long getNanoTotal()  
      long getRecordsTotal()  
      void print​(java.io.Writer out, long superCount, long superRecords, long superNano)  
      static void printHelper​(java.io.Writer out, java.lang.String statementType, long count, long records, long nano, long totalCount, long totalRecords, long totalNano)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _Name

        protected final java.lang.String _Name
      • _SelectNano

        protected java.util.concurrent.atomic.AtomicLong _SelectNano
      • _SelectCount

        protected java.util.concurrent.atomic.AtomicLong _SelectCount
      • _SelectRecords

        protected java.util.concurrent.atomic.AtomicLong _SelectRecords
      • _InsertNano

        protected java.util.concurrent.atomic.AtomicLong _InsertNano
      • _InsertCount

        protected java.util.concurrent.atomic.AtomicLong _InsertCount
      • _InsertRecords

        protected java.util.concurrent.atomic.AtomicLong _InsertRecords
      • _UpdateNano

        protected java.util.concurrent.atomic.AtomicLong _UpdateNano
      • _UpdateCount

        protected java.util.concurrent.atomic.AtomicLong _UpdateCount
      • _UpdateRecords

        protected java.util.concurrent.atomic.AtomicLong _UpdateRecords
      • _DeleteNano

        protected java.util.concurrent.atomic.AtomicLong _DeleteNano
      • _DeleteCount

        protected java.util.concurrent.atomic.AtomicLong _DeleteCount
      • _DeleteRecords

        protected java.util.concurrent.atomic.AtomicLong _DeleteRecords
    • Constructor Detail

      • TableInfo

        public TableInfo​(java.lang.String Name)
    • Method Detail

      • addSelect

        protected void addSelect​(long nano,
                                 int Count)
      • addInsert

        protected void addInsert​(long nano,
                                 int Count)
      • addUpdate

        protected void addUpdate​(long nano,
                                 int Count)
      • addDelete

        protected void addDelete​(long nano,
                                 int Count)
      • add

        public void add​(StatementType Type,
                        long nano,
                        int Count)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Info
      • getCountTotal

        public long getCountTotal()
        Specified by:
        getCountTotal in interface Info
      • getRecordsTotal

        public long getRecordsTotal()
        Specified by:
        getRecordsTotal in interface Info
      • getNanoTotal

        public long getNanoTotal()
        Specified by:
        getNanoTotal in interface Info
      • printHelper

        public static void printHelper​(java.io.Writer out,
                                       java.lang.String statementType,
                                       long count,
                                       long records,
                                       long nano,
                                       long totalCount,
                                       long totalRecords,
                                       long totalNano)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • print

        public void print​(java.io.Writer out,
                          long superCount,
                          long superRecords,
                          long superNano)
                   throws java.lang.Exception
        Specified by:
        print in interface Info
        Throws:
        java.lang.Exception