Class StatsResult


  • public class StatsResult
    extends java.lang.Object
    • Field Detail

      • HT_HEADERS

        public static final java.lang.String[] HT_HEADERS
      • FT_HEADERS

        public static final java.lang.String[] FT_HEADERS
    • Constructor Detail

      • StatsResult

        public StatsResult()
      • StatsResult

        public StatsResult​(StatCount total,
                           StatCount remaining,
                           StatCount unique,
                           StatCount remainingUnique,
                           java.util.Set<java.lang.String> translated,
                           java.util.List<FileData> counts)
        Constructor.
        Parameters:
        total -
        remaining -
        unique -
        remainingUnique -
        translated -
        counts -
    • Method Detail

      • updateStatisticsInfo

        public void updateStatisticsInfo​(StatisticsInfo hotStat)
        Update given hosStat with current stats data.
        Parameters:
        hotStat - StatisticsInfo data object.
      • getDate

        public java.lang.String getDate()
      • getTotal

        public StatCount getTotal()
        Return total number of segments.
        Returns:
      • getRemaining

        public StatCount getRemaining()
        Return remaining number of segments that needs translation.
        Returns:
      • getUnique

        public StatCount getUnique()
        Return a number of unique segments.
        Returns:
      • getRemainingUnique

        public StatCount getRemainingUnique()
        Return a number of remaining unique segments.
        Returns:
      • getCounts

        public java.util.List<FileData> getCounts()
        return a statistics of each source/target files.
        Returns:
      • getTextData

        public java.lang.String getTextData()
        Return pretty printed statistics data.
        Returns:
        pretty-printed string.
      • getJsonData

        public java.lang.String getJsonData()
                                     throws java.io.IOException
        Return JSON expression of stats data.
        Returns:
        JSON string data.
        Throws:
        java.io.IOException - when export failed.
      • getXmlData

        public java.lang.String getXmlData()
        Return XML expression of Stats data.
        Returns:
        XML expression of stats data as String.
      • getHeaderTable

        public java.lang.String[][] getHeaderTable()
      • getFilesTable

        public java.lang.String[][] getFilesTable()