Class CodecService

org.elasticsearch.index.codec.CodecService

public class CodecService extends
Since Lucene 4.0 low level index segments are read and written through a codec layer that allows to use use-case specific file formats & data-structures per field. Elasticsearch exposes the full Codec capabilities through this CodecService.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static
     
    static
     
    static
    the raw unfiltered lucene default.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CodecService​(MapperService mapperService, org.apache.logging.log4j.Logger logger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    []
    Returns all registered available codec names
    org.apache.lucene.codecs.Codec
     name)
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Field Details

    • DEFAULT_CODEC

      public static final  DEFAULT_CODEC
      See Also:
      Constant Field Values
    • BEST_COMPRESSION_CODEC

      public static final  BEST_COMPRESSION_CODEC
      See Also:
      Constant Field Values
    • LUCENE_DEFAULT_CODEC

      public static final  LUCENE_DEFAULT_CODEC
      the raw unfiltered lucene default. useful for testing
      See Also:
      Constant Field Values
  • Constructor Details

    • CodecService

      public CodecService(@Nullable MapperService mapperService, org.apache.logging.log4j.Logger logger)
  • Method Details

    • codec

      public org.apache.lucene.codecs.Codec codec( name)
    • availableCodecs

      public [] availableCodecs()
      Returns all registered available codec names