Java Code Examples for org.apache.lucene.util.InfoStream#NO_OUTPUT
The following examples show how to use
org.apache.lucene.util.InfoStream#NO_OUTPUT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IndexAndTaxonomyReplicationHandler.java From lucene-solr with Apache License 2.0 | 5 votes |
/** Sets the {@link InfoStream} to use for logging messages. */ public void setInfoStream(InfoStream infoStream) { if (infoStream == null) { infoStream = InfoStream.NO_OUTPUT; } this.infoStream = infoStream; }
Example 2
Source File: IndexReplicationHandler.java From lucene-solr with Apache License 2.0 | 5 votes |
/** Sets the {@link InfoStream} to use for logging messages. */ public void setInfoStream(InfoStream infoStream) { if (infoStream == null) { infoStream = InfoStream.NO_OUTPUT; } this.infoStream = infoStream; }
Example 3
Source File: ReplicationClient.java From lucene-solr with Apache License 2.0 | 5 votes |
/** Sets the {@link InfoStream} to use for logging messages. */ public void setInfoStream(InfoStream infoStream) { if (infoStream == null) { infoStream = InfoStream.NO_OUTPUT; } this.infoStream = infoStream; }
Example 4
Source File: TestBackwardsCompatibility.java From lucene-solr with Apache License 2.0 | 5 votes |
/** * Randomizes the use of some of hte constructor variations */ private static IndexUpgrader newIndexUpgrader(Directory dir) { final boolean streamType = random().nextBoolean(); final int choice = TestUtil.nextInt(random(), 0, 2); switch (choice) { case 0: return new IndexUpgrader(dir); case 1: return new IndexUpgrader(dir, streamType ? null : InfoStream.NO_OUTPUT, false); case 2: return new IndexUpgrader(dir, newIndexWriterConfig(null), false); default: fail("case statement didn't get updated when random bounds changed"); } return null; // never get here }