Interface SegmentFetcher
-
- All Known Implementing Classes:
BaseSegmentFetcher,HttpSegmentFetcher,HttpsSegmentFetcher,PinotFSSegmentFetcher
public interface SegmentFetcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfetchSegmentToLocal(URI uri, File dest)Fetches a segment from URI location to local.voidfetchSegmentToLocal(List<URI> uri, File dest)Fetches a segment to local from any uri in the given list.FilefetchUntarSegmentToLocalStreamed(URI uri, File dest, long rateLimit)Fetches a segment from URI location and untar to local in a streamed mannervoidinit(PinotConfiguration config)Initializes the segment fetcher.
-
-
-
Method Detail
-
init
void init(PinotConfiguration config)
Initializes the segment fetcher.
-
fetchSegmentToLocal
void fetchSegmentToLocal(URI uri, File dest) throws Exception
Fetches a segment from URI location to local.- Throws:
Exception
-
fetchUntarSegmentToLocalStreamed
File fetchUntarSegmentToLocalStreamed(URI uri, File dest, long rateLimit) throws Exception
Fetches a segment from URI location and untar to local in a streamed manner- Throws:
Exception
-
-