|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides constants to be used as compression flags for the
constructors of the IndexReader
and IndexWriter
classes.
Of course, this is an instance of the constant interface antipattern. Blame it on Sun for having made static members access so ugly.
IndexWriter
Field Summary | |
static int |
ARITH
Arithmetic coding (see ArithmeticCoder ). |
static String[] |
CODING_NAME
|
static long |
COUNTS_DEFAULT
Flag: default value for count coding (γ). |
static long |
COUNTS_DELTA
Flag: write counts of occurrence lists using δ coding. |
static long |
COUNTS_GAMMA
Flag: write counts of occurrence lists using γ coding (default). |
static int |
COUNTS_SHIFT
The mask shift for count coding. |
static int |
DELTA
δ coding (see OutputBitStream.writeDelta(int) ). |
static long |
FREQUENCIES_DEFAULT
Flag: default value for frequency coding (γ). |
static long |
FREQUENCIES_DELTA
Flag: write the term frequency using δ coding. |
static long |
FREQUENCIES_GAMMA
Flag: write the term frequency using γ coding. |
static int |
FREQUENCIES_SHIFT
The mask shift for frequency coding. |
static int |
GAMMA
γ coding (see OutputBitStream.writeGamma(int) ). |
static int |
GOLOMB
Golomb coding (see OutputBitStream.writeGolomb(int,int) ). |
static int |
INTERP
Interpolative coding (see InterpolativeCoding ). |
static int |
NIBBLE
Variable-length nibble coding (see OutputBitStream.writeNibble(int) ). |
static long |
NO_COUNTS
Flag: do not write counts (and thus, a fortiori, positions). |
static long |
NO_POSITIONS
Flag: do not write positions. |
static int |
NONE
A special value used to denote absence of a feature. |
static long |
POINTERS_DEFAULT
Flag: default value for pointer coding (Golomb). |
static long |
POINTERS_DELTA
Flag: write document pointers using δ coding. |
static long |
POINTERS_GAMMA
Flag: write document pointers using γ coding. |
static long |
POINTERS_GOLOMB
Flag: write document pointers using Golomb coding with parameter Fast.golombModulus(freq/N) (default). |
static int |
POINTERS_SHIFT
The mask shift for pointer coding. |
static long |
POSITIONS_ARITH
Flag: write positions in a document using arithmetic coding. |
static long |
POSITIONS_DEFAULT
Flag: default value for position coding (Golomb). |
static long |
POSITIONS_DELTA
Flag: write positions in a document using δ coding. |
static long |
POSITIONS_GAMMA
Flag: write positions in a document using γ coding. |
static long |
POSITIONS_GOLOMB
Flag: write positions in a document using Golomb coding with parameter Fast.golombModulus(count/docSize) (default). |
static long |
POSITIONS_INTERP
Flag: write positions in a document using interpolative coding. |
static int |
POSITIONS_SHIFT
The mask shift for position coding. |
static long |
POSITIONS_SKEWED_GOLOMB
Flag: write positions in a document using skewed Golomb coding with parameter Fast.golombModulus(median/docSize) . |
static int |
SKEWED_GOLOMB
Skewed Golomb coding (see OutputBitStream.writeSkewedGolomb(int,int) ). |
static int |
UNARY
Unary coding (see OutputBitStream.writeUnary(int) ). |
static int |
ZETA
ζk coding (see OutputBitStream.writeZeta(int,int) ). |
Field Detail |
public static final int DELTA
OutputBitStream.writeDelta(int)
).
public static final int GAMMA
OutputBitStream.writeGamma(int)
).
public static final int GOLOMB
OutputBitStream.writeGolomb(int,int)
).
public static final int SKEWED_GOLOMB
OutputBitStream.writeSkewedGolomb(int,int)
).
public static final int ARITH
ArithmeticCoder
).
public static final int INTERP
InterpolativeCoding
).
public static final int UNARY
OutputBitStream.writeUnary(int)
).
public static final int ZETA
OutputBitStream.writeZeta(int,int)
).
public static final int NIBBLE
OutputBitStream.writeNibble(int)
).
public static final int NONE
public static final String[] CODING_NAME
public static final int FREQUENCIES_SHIFT
public static final long FREQUENCIES_DEFAULT
public static final long FREQUENCIES_GAMMA
public static final long FREQUENCIES_DELTA
public static final int POINTERS_SHIFT
public static final long POINTERS_DEFAULT
public static final long POINTERS_GOLOMB
Fast.golombModulus(freq/N)
(default).
public static final long POINTERS_GAMMA
public static final long POINTERS_DELTA
public static final int COUNTS_SHIFT
public static final long COUNTS_DEFAULT
public static final long COUNTS_GAMMA
public static final long COUNTS_DELTA
public static final long NO_COUNTS
public static final int POSITIONS_SHIFT
public static final long POSITIONS_DEFAULT
public static final long POSITIONS_GOLOMB
Fast.golombModulus(count/docSize)
(default).
public static final long POSITIONS_SKEWED_GOLOMB
Fast.golombModulus(median/docSize)
.
public static final long POSITIONS_GAMMA
public static final long POSITIONS_DELTA
public static final long POSITIONS_ARITH
public static final long POSITIONS_INTERP
public static final long NO_POSITIONS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |