Modifier and Type | Method and Description |
---|---|
Compact |
build()
Create an executable version of the
Compact command. |
Compact.Builder |
withMmap(Boolean mmap)
Whether to use memory mapped access or file access.
|
Compact.Builder |
withPath(File path)
The path to an existing segment store.
|
Compact.Builder |
withSegmentCacheSize(int segmentCacheSize)
The size of the segment cache in MB.
|
public Compact.Builder withPath(File path)
path
- the path to an existing segment store.public Compact.Builder withMmap(@Nullable Boolean mmap)
mmap
- true
for memory mapped access, false
for file access
null
to determine the access mode from the system architecture:
memory mapped on 64 bit systems, file access on 32 bit systems.public Compact.Builder withSegmentCacheSize(int segmentCacheSize)
SegmentCache.DEFAULT_SEGMENT_CACHE_MB
when this method is not invoked.segmentCacheSize
- cache size in MBIllegalArgumentException
- if segmentCacheSize
is not a positive integer.Copyright © 2012-2019 The Apache Software Foundation. All Rights Reserved.