Class BackfillSegmentUtils


  • public class BackfillSegmentUtils
    extends Object
    Contains APIs which are used for backfilling the pinot segments with dateTimeFieldSpec
    • Constructor Detail

      • BackfillSegmentUtils

        public BackfillSegmentUtils​(String controllerHost,
                                    String controllerPort)
    • Method Detail

      • getAllSegments

        public List<String> getAllSegments​(String tableName,
                                           org.apache.pinot.spi.utils.CommonConstants.Segment.SegmentType segmentType)
                                    throws IOException
        Fetches the list of all segment names for a table
        Parameters:
        tableName -
        Returns:
        Throws:
        IOException
      • downloadSegment

        public boolean downloadSegment​(String tableName,
                                       String segmentName,
                                       File downloadSegmentDir,
                                       File tableBackupDir)
        Downloads a segment from a table to a directory locally, and backs it up to given backup path
        Parameters:
        tableName -
        segmentName -
        downloadSegmentDir - - download segment path
        tableBackupDir - - backup segments path
        Returns:
      • uploadSegment

        @Deprecated
        public boolean uploadSegment​(String rawTableName,
                                     String segmentName,
                                     File segmentDir,
                                     File outputDir)
        Deprecated.
        Uploads the segment tar to the controller. NOTE: this method does not support auth tokens