public final class Parameters extends Object
compressor.| Modifier and Type | Class and Description | 
|---|---|
| static class  | Parameters.BuilderBuilder for  Parametersinstances. | 
| Modifier and Type | Field and Description | 
|---|---|
| static int | TRUE_MIN_BACK_REFERENCE_LENGTHThe hard-coded absolute minimal length of a back-reference. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Parameters.Builder | builder(int windowSize)Initializes the builder for the compressor's parameters with a
  minBackReferenceLengthof 3 andmax*Lengthequal towindowSize - 1. | 
| boolean | getLazyMatching()Gets whether to perform lazy matching. | 
| int | getLazyMatchingThreshold()Gets the threshold for lazy matching. | 
| int | getMaxBackReferenceLength()Gets the maximal length of a back-reference found. | 
| int | getMaxCandidates()Gets the maximum number of back-reference candidates to consider. | 
| int | getMaxLiteralLength()Gets the maximal length of a literal block. | 
| int | getMaxOffset()Gets the maximal offset of a back-reference found. | 
| int | getMinBackReferenceLength()Gets the minimal length of a back-reference found. | 
| int | getNiceBackReferenceLength()Gets the length of a back-reference that is considered nice enough to stop searching for longer ones. | 
| int | getWindowSize()Gets the size of the sliding window - this determines the
 maximum offset a back-reference can take. | 
public static final int TRUE_MIN_BACK_REFERENCE_LENGTH
public static Parameters.Builder builder(int windowSize)
minBackReferenceLength of 3 and max*Length
 equal to windowSize - 1.
 It is recommended to not use this method directly but rather
 tune a pre-configured builder created by a format specific
 factory like SnappyCompressorOutputStream.createParameterBuilder(int).
windowSize - the size of the sliding window - this
 determines the maximum offset a back-reference can take. Must
 be a power of two.IllegalArgumentException - if windowSize is not a power of two.public int getWindowSize()
public int getMinBackReferenceLength()
public int getMaxBackReferenceLength()
public int getMaxOffset()
public int getMaxLiteralLength()
public int getNiceBackReferenceLength()
public int getMaxCandidates()
public boolean getLazyMatching()
public int getLazyMatchingThreshold()
Copyright © 2018 The Apache Software Foundation. All rights reserved.