Package org.apache.lucene.util.encoding

Offers various encoders and decoders for integers, as well as the mechanisms to create new ones.

See:
          Description

Class Summary
ChunksIntEncoder An IntEncoder which encodes values in chunks.
DGapIntDecoder An IntDecoder which wraps another decoder and reverts the d-gap that was encoded by DGapIntEncoder.
DGapIntEncoder An IntEncoderFilter which encodes the gap between the given values, rather than the values themselves.
EightFlagsIntDecoder Decodes values encoded with EightFlagsIntEncoder.
EightFlagsIntEncoder A ChunksIntEncoder which encodes data in chunks of 8.
FourFlagsIntDecoder Decodes values encoded with FourFlagsIntEncoder.
FourFlagsIntEncoder A ChunksIntEncoder which encodes values in chunks of 4.
IntDecoder Decodes integers from a set BytesRef.
IntEncoder Encodes integers to a set BytesRef.
IntEncoderFilter An abstract implementation of IntEncoder which wraps another encoder.
NOnesIntDecoder Decodes values encoded encoded with NOnesIntEncoder.
NOnesIntEncoder A variation of FourFlagsIntEncoder which translates the data as follows: Values ≥ 2 are trnalsated to value+1 (2 ⇒ 3, 3 ⇒ 4 and so forth).
SimpleIntDecoder Decodes values encoded with SimpleIntEncoder.
SimpleIntEncoder A simple IntEncoder, writing an integer as 4 raw bytes.
SortingIntEncoder An IntEncoderFilter which sorts the values to encode in ascending order before encoding them.
UniqueValuesIntEncoder An IntEncoderFilter which ensures only unique values are encoded.
VInt8IntDecoder Decodes values encoded by VInt8IntEncoder.
VInt8IntEncoder An IntEncoder which implements variable length encoding.
 

Package org.apache.lucene.util.encoding Description

Offers various encoders and decoders for integers, as well as the mechanisms to create new ones. The super class for all encoders is IntEncoder and for most of the encoders there is a matching IntDecoder implementation (not all encoders need a decoder).

Some encoders don't perform any encoding at all, or do not include an encoding logic. Those are called IntEncoderFilters. A filter is an encoder which delegates the encoding task to a given encoder, however performs additional logic before the values are sent for encoding. An example is DGapIntEncoder which encodes the gaps between values rather than the values themselves. Another example is SortingIntEncoder which sorts all the values in ascending order before they are sent for encoding.



Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.