Interface SegmentUploader


  • @Evolving
    public interface SegmentUploader
    Interface for uploading segments to Pinot
    • Method Detail

      • uploadSegment

        void uploadSegment​(URI segmentTarFile,
                           @Nullable
                           AuthProvider authProvider)
                    throws Exception
        Uploads the segment tar file to the cluster
        Parameters:
        segmentTarFile - URI of segment tar file
        authProvider - auth provider
        Throws:
        Exception
      • uploadSegmentsFromDir

        void uploadSegmentsFromDir​(URI segmentDir,
                                   @Nullable
                                   AuthProvider authProvider)
                            throws Exception
        Uploads the segments from the segmentDir to the cluster. Looks for segmentTar files recursively, with suffix .tar.gz
        Parameters:
        segmentDir - URI of directory containing segment tar files
        authProvider - auth auth provider
        Throws:
        Exception