Class CodecService

  • public class CodecService
    extends java.lang.Object
    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.
    • Constructor Summary

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

      Modifier and Type Method Description
      java.lang.String[] availableCodecs()
      Returns all registered available codec names
      org.apache.lucene.codecs.Codec codec​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail


        public static final java.lang.String BEST_COMPRESSION_CODEC
        See Also:
        Constant Field Values

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

      • CodecService

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

      • codec

        public org.apache.lucene.codecs.Codec codec​(java.lang.String name)
      • availableCodecs

        public java.lang.String[] availableCodecs()
        Returns all registered available codec names