Class SegmentInfoProvider


  • public class SegmentInfoProvider
    extends Object
    Given a segments directory, pick all segments and read the dictionaries for all single-value dimension columns. Here we will treat time column (if exists) as a single-value dimension column.
    • Constructor Detail

      • SegmentInfoProvider

        public SegmentInfoProvider​(String segmentDirName)
                            throws Exception
        Assume that segments directory has at least one segment. - Gets all single-value dimension/metric columns from the directory. - Reads dictionaries for all single-value dimension columns.
        Parameters:
        segmentDirName - Name of directory containing tarred/untarred segments.
        Throws:
        Exception
    • Method Detail

      • getSingleValueDimensionColumns

        public List<String> getSingleValueDimensionColumns()
        Return the list of single-value dimension columns.
        Returns:
        single-value dimension columns.
      • getMetricColumns

        public List<String> getMetricColumns()
        Return the list of metric columns
        Returns:
        metric columns.
      • getSingleValueDimensionValuesMap

        public Map<String,​List<Object>> getSingleValueDimensionValuesMap()
        Return the map from single-value dimension names to values list for the column.
        Returns:
        map from single-value dimension names to values list for the column.