Interface ScanDispatch.Builder
-
- Enclosing interface:
- ScanDispatch
public static interface ScanDispatch.Builder
- Since:
- 2.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScanDispatch
build()
ScanDispatch.Builder
setDataCacheUsage(ScanDispatch.CacheUsage usage)
If this is not called, thenScanDispatch.CacheUsage.TABLE
should be used.ScanDispatch.Builder
setExecutorName(String name)
If this is not called, then "default" should be used.ScanDispatch.Builder
setIndexCacheUsage(ScanDispatch.CacheUsage usage)
If this is not called, thenScanDispatch.CacheUsage.TABLE
should be used.
-
-
-
Method Detail
-
setExecutorName
ScanDispatch.Builder setExecutorName(String name)
If this is not called, then "default" should be used.- Parameters:
name
- a non null name of an existing scan executor to use for this scan from the key set ofScanDispatcher.DispatchParameters.getScanExecutors()
- Returns:
- may return self or a new object
-
setIndexCacheUsage
ScanDispatch.Builder setIndexCacheUsage(ScanDispatch.CacheUsage usage)
If this is not called, thenScanDispatch.CacheUsage.TABLE
should be used.- Parameters:
usage
- a non null usage indicating how the scan should use cache for file metadata (like the index tree within a file)- Returns:
- may return self or a new object
-
setDataCacheUsage
ScanDispatch.Builder setDataCacheUsage(ScanDispatch.CacheUsage usage)
If this is not called, thenScanDispatch.CacheUsage.TABLE
should be used.- Parameters:
usage
- a non null usage indicating how the scan should use cache for file data- Returns:
- may return self or a new object
-
build
ScanDispatch build()
- Returns:
- an immutable
ScanDispatch
object.
-
-