Beispiel #1
0
 /// <summary>
 /// Sets the <see cref="IDocValuesFormatFactory"/> instance used to instantiate
 /// <see cref="DocValuesFormat"/> subclasses.
 /// </summary>
 /// <param name="docValuesFormatFactory">The new <see cref="IDocValuesFormatFactory"/>.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="docValuesFormatFactory"/> parameter is <c>null</c>.</exception>
 public static void SetDocValuesFormatFactory(IDocValuesFormatFactory docValuesFormatFactory)
 {
     if (docValuesFormatFactory == null)
     {
         throw new ArgumentNullException("docValuesFormatFactory");
     }
     DocValuesFormat.docValuesFormatFactory = docValuesFormatFactory;
 }
Beispiel #2
0
        protected LuceneTestFrameworkInitializer()
        {
            codecFactory           = new TestCodecFactory();
            docValuesFormatFactory = new TestDocValuesFormatFactory();
            postingsFormatFactory  = new TestPostingsFormatFactory();
            configurationFactory   = new TestConfigurationFactory();

            useTempLineDocsFileRule = new UseTempLineDocsFileRule();
        }
Beispiel #3
0
 /// <summary>
 /// Sets the <see cref="IDocValuesFormatFactory"/> instance used to instantiate
 /// <see cref="DocValuesFormat"/> subclasses.
 /// </summary>
 /// <param name="docValuesFormatFactory">The new <see cref="IDocValuesFormatFactory"/>.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="docValuesFormatFactory"/> parameter is <c>null</c>.</exception>
 public static void SetDocValuesFormatFactory(IDocValuesFormatFactory docValuesFormatFactory)
 {
     DocValuesFormat.docValuesFormatFactory = docValuesFormatFactory ?? throw new ArgumentNullException(nameof(docValuesFormatFactory));
 }