Interface ScanDirectives.Builder
-
- Enclosing interface:
- ScanDirectives
public static interface ScanDirectives.Builder- Since:
- 2.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScanDirectivesbuild()ScanDirectives.BuildersetDataCacheUsage(ScanDirectives.CacheUsage usage)If this is not called, thenScanDirectives.CacheUsage.TABLEshould be used.ScanDirectives.BuildersetExecutorName(String name)If this is not called, then "default" should be used.ScanDirectives.BuildersetIndexCacheUsage(ScanDirectives.CacheUsage usage)If this is not called, thenScanDirectives.CacheUsage.TABLEshould be used.
-
-
-
Method Detail
-
setExecutorName
ScanDirectives.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
ScanDirectives.Builder setIndexCacheUsage(ScanDirectives.CacheUsage usage)
If this is not called, thenScanDirectives.CacheUsage.TABLEshould 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
ScanDirectives.Builder setDataCacheUsage(ScanDirectives.CacheUsage usage)
If this is not called, thenScanDirectives.CacheUsage.TABLEshould 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
ScanDirectives build()
- Returns:
- an immutable
ScanDirectivesobject.
-
-