public static class AzureCompact.Builder
extends java.lang.Object
Compact
command.Modifier and Type | Method and Description |
---|---|
AzureCompact |
build()
Create an executable version of the
Compact command. |
AzureCompact.Builder |
withCompactorType(SegmentGCOptions.CompactorType compactorType)
The compactor type to be used by compaction.
|
AzureCompact.Builder |
withForce(boolean force)
Whether to fail if run on an older version of the store of force upgrading
its format.
|
AzureCompact.Builder |
withGCLogInterval(long gcLogInterval)
The number of nodes after which an update about the compaction process is
logged.
|
AzureCompact.Builder |
withPath(java.lang.String path)
The path (URI) to an existing segment store.
|
AzureCompact.Builder |
withPersistentCachePath(java.lang.String persistentCachePath)
The path where segments in the persistent cache will be stored.
|
AzureCompact.Builder |
withPersistentCacheSizeGb(java.lang.Integer persistentCacheSizeGb)
The maximum size in GB of the persistent disk cache.
|
AzureCompact.Builder |
withSegmentCacheSize(int segmentCacheSize)
The size of the segment cache in MB.
|
AzureCompact.Builder |
withTargetPath(java.lang.String targetPath)
The path (URI) to the target segment store.
|
public AzureCompact.Builder withPath(java.lang.String path)
path
- the path to an existing segment store.public AzureCompact.Builder withTargetPath(java.lang.String targetPath)
targetPath
- the path to the target segment store.public AzureCompact.Builder withForce(boolean force)
force
- upgrade iff true
public AzureCompact.Builder withSegmentCacheSize(int segmentCacheSize)
SegmentCache.DEFAULT_SEGMENT_CACHE_MB
when this method is not
invoked.segmentCacheSize
- cache size in MBjava.lang.IllegalArgumentException
- if segmentCacheSize
is not a positive integer.public AzureCompact.Builder withGCLogInterval(long gcLogInterval)
gcLogInterval
- The log interval.public AzureCompact.Builder withCompactorType(SegmentGCOptions.CompactorType compactorType)
compactorType
- the compactor typepublic AzureCompact.Builder withPersistentCachePath(java.lang.String persistentCachePath)
persistentCachePath
- the path to the persistent cache.public AzureCompact.Builder withPersistentCacheSizeGb(java.lang.Integer persistentCacheSizeGb)
persistentCacheSizeGb
- the maximum size of the persistent cache.public AzureCompact build()
Compact
command.Runnable
.Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.