/// <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; }
protected LuceneTestFrameworkInitializer() { codecFactory = new TestCodecFactory(); docValuesFormatFactory = new TestDocValuesFormatFactory(); postingsFormatFactory = new TestPostingsFormatFactory(); configurationFactory = new TestConfigurationFactory(); useTempLineDocsFileRule = new UseTempLineDocsFileRule(); }
/// <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)); }