Class HttpSegmentFetcher
- java.lang.Object
-
- org.apache.pinot.common.utils.fetcher.BaseSegmentFetcher
-
- org.apache.pinot.common.utils.fetcher.HttpSegmentFetcher
-
- All Implemented Interfaces:
SegmentFetcher
- Direct Known Subclasses:
HttpsSegmentFetcher
public class HttpSegmentFetcher extends BaseSegmentFetcher
-
-
Field Summary
Fields Modifier and Type Field Description protected FileUploadDownloadClient_httpClient-
Fields inherited from class org.apache.pinot.common.utils.fetcher.BaseSegmentFetcher
_authProvider, _logger, _retryCount, _retryDelayScaleFactor, _retryWaitMs, DEFAULT_RETRY_COUNT, DEFAULT_RETRY_DELAY_SCALE_FACTOR, DEFAULT_RETRY_WAIT_MS, RETRY_COUNT_CONFIG_KEY, RETRY_DELAY_SCALE_FACTOR_CONFIG_KEY, RETRY_WAIT_MS_CONFIG_KEY
-
-
Constructor Summary
Constructors Constructor Description HttpSegmentFetcher()
-
Method Summary
Modifier and Type Method Description protected voiddoInit(PinotConfiguration config)Override this for custom initialization.voidfetchSegmentToLocal(URI downloadURI, File dest)Fetches a segment from URI location to local.voidfetchSegmentToLocalWithoutRetry(URI uri, File dest)Fetches a segment from URI location to local without retry.FilefetchUntarSegmentToLocalStreamed(URI downloadURI, File dest, long maxStreamRateInByte)Fetches a segment from URI location and untar to local in a streamed manner-
Methods inherited from class org.apache.pinot.common.utils.fetcher.BaseSegmentFetcher
fetchSegmentToLocal, init
-
-
-
-
Field Detail
-
_httpClient
protected FileUploadDownloadClient _httpClient
-
-
Method Detail
-
doInit
protected void doInit(PinotConfiguration config)
Description copied from class:BaseSegmentFetcherOverride this for custom initialization.- Overrides:
doInitin classBaseSegmentFetcher
-
fetchSegmentToLocal
public void fetchSegmentToLocal(URI downloadURI, File dest) throws Exception
Description copied from interface:SegmentFetcherFetches a segment from URI location to local.- Specified by:
fetchSegmentToLocalin interfaceSegmentFetcher- Overrides:
fetchSegmentToLocalin classBaseSegmentFetcher- Throws:
Exception
-
fetchUntarSegmentToLocalStreamed
public File fetchUntarSegmentToLocalStreamed(URI downloadURI, File dest, long maxStreamRateInByte) throws Exception
Description copied from interface:SegmentFetcherFetches a segment from URI location and untar to local in a streamed manner- Specified by:
fetchUntarSegmentToLocalStreamedin interfaceSegmentFetcher- Overrides:
fetchUntarSegmentToLocalStreamedin classBaseSegmentFetcher- Throws:
Exception
-
fetchSegmentToLocalWithoutRetry
public void fetchSegmentToLocalWithoutRetry(URI uri, File dest) throws Exception
Description copied from class:BaseSegmentFetcherFetches a segment from URI location to local without retry. Sub-class should override this orBaseSegmentFetcher.fetchSegmentToLocal(URI, File).- Overrides:
fetchSegmentToLocalWithoutRetryin classBaseSegmentFetcher- Throws:
Exception
-
-