コード例 #1
0
ファイル: DocValuesFormat.cs プロジェクト: sycct/lucenenet
 /// <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;
 }
コード例 #2
0
        protected LuceneTestFrameworkInitializer()
        {
            codecFactory           = new TestCodecFactory();
            docValuesFormatFactory = new TestDocValuesFormatFactory();
            postingsFormatFactory  = new TestPostingsFormatFactory();
            configurationFactory   = new TestConfigurationFactory();

            useTempLineDocsFileRule = new UseTempLineDocsFileRule();
        }
コード例 #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));
 }