Class CompressionFlags


  • public class CompressionFlags
    extends Object
    A container for constants and enums related to index compression.

    Several MG4J index-related methods require a set of flags specified as a flag map, that is, an EnumMap from components to codings (see, e.g., BitStreamIndexWriter). For the special component CompressionFlags.Component.PAYLOADS, the only admissible value is null.

    Besides declaring the necessary enums, this class contains a parsing method that turns an array of the form component:coding into a flag map.

    Since:
    1.2
    Author:
    Sebastiano Vigna