Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new docvalues format.
        /// <p>
        /// The provided name will be written into the index segment in some configurations
        /// (such as when using {@code PerFieldDocValuesFormat}): in such configurations,
        /// for the segment to be read this class should be registered with Java's
        /// SPI mechanism (registered in META-INF/ of your jar file, etc). </summary>
        /// <param name="name"> must be all ascii alphanumeric, and less than 128 characters in length. </param>
        protected internal DocValuesFormat(string name)
        {
            NamedSPILoader <DocValuesFormat> .CheckServiceName(name);

            this.Name_Renamed = name;
        }
Ejemplo n.º 2
0
 static Codec()
 {
     Loader       = new NamedSPILoader <Codec>(typeof(Codec));
     DefaultCodec = Codec.ForName("Lucene46");
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a new codec.
        /// <p>
        /// The provided name will be written into the index segment: in order to
        /// for the segment to be read this class should be registered with Java's
        /// SPI mechanism (registered in META-INF/ of your jar file, etc). </summary>
        /// <param name="name"> must be all ascii alphanumeric, and less than 128 characters in length. </param>
        protected internal Codec(string name_)
        {
            NamedSPILoader <Codec> .CheckServiceName(name_);

            this.name = name_;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates a new postings format.
        /// <p>
        /// The provided name will be written into the index segment in some configurations
        /// (such as when using <seealso cref="PerFieldPostingsFormat"/>): in such configurations,
        /// for the segment to be read this class should be registered with Java's
        /// SPI mechanism (registered in META-INF/ of your jar file, etc). </summary>
        /// <param name="name"> must be all ascii alphanumeric, and less than 128 characters in length. </param>
        protected internal PostingsFormat(string name)
        {
            NamedSPILoader <PostingsFormat> .CheckServiceName(name);

            this.name = name;
        }