You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2015/08/01 11:40:37 UTC
svn commit: r1693694 - in /lucene/dev/branches/branch_5x: ./ lucene/
lucene/sandbox/ lucene/sandbox/src/java/org/apache/lucene/rangetree/
lucene/sandbox/src/test/org/apache/lucene/rangetree/
Author: mikemccand
Date: Sat Aug 1 09:40:36 2015
New Revision: 1693694
URL: http://svn.apache.org/r1693694
Log:
LUCENE-6697: rename NumericTree -> RangeTree
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/lucene/ (props changed)
lucene/dev/branches/branch_5x/lucene/sandbox/ (props changed)
lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesFormat.java
lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesProducer.java
lucene/dev/branches/branch_5x/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java
Modified: lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesFormat.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesFormat.java?rev=1693694&r1=1693693&r2=1693694&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesFormat.java (original)
+++ lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesFormat.java Sat Aug 1 09:40:36 2015
@@ -65,12 +65,12 @@ import java.io.IOException;
public class RangeTreeDocValuesFormat extends DocValuesFormat {
- static final String DATA_CODEC_NAME = "NumericTreeData";
+ static final String DATA_CODEC_NAME = "RangeTreeData";
static final int DATA_VERSION_START = 0;
static final int DATA_VERSION_CURRENT = DATA_VERSION_START;
static final String DATA_EXTENSION = "ndd";
- static final String META_CODEC_NAME = "NumericTreeMeta";
+ static final String META_CODEC_NAME = "RangeTreeMeta";
static final int META_VERSION_START = 0;
static final int META_VERSION_CURRENT = META_VERSION_START;
static final String META_EXTENSION = "ndm";
@@ -94,7 +94,7 @@ public class RangeTreeDocValuesFormat ex
*
* @lucene.experimental */
public RangeTreeDocValuesFormat(int maxPointsInLeafNode, int maxPointsSortInHeap) {
- super("NumericTree");
+ super("RangeTree");
RangeTreeWriter.verifyParams(maxPointsInLeafNode, maxPointsSortInHeap);
this.maxPointsInLeafNode = maxPointsInLeafNode;
this.maxPointsSortInHeap = maxPointsSortInHeap;
Modified: lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesProducer.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesProducer.java?rev=1693694&r1=1693693&r2=1693694&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesProducer.java (original)
+++ lucene/dev/branches/branch_5x/lucene/sandbox/src/java/org/apache/lucene/rangetree/RangeTreeDocValuesProducer.java Sat Aug 1 09:40:36 2015
@@ -78,7 +78,7 @@ class RangeTreeDocValuesProducer extends
merging = false;
}
- // clone for merge: we don't hang onto the NumericTrees we load
+ // clone for merge: we don't hang onto the RangeTrees we load
RangeTreeDocValuesProducer(RangeTreeDocValuesProducer orig) throws IOException {
assert Thread.holdsLock(orig);
datIn = orig.datIn.clone();
Modified: lucene/dev/branches/branch_5x/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java?rev=1693694&r1=1693693&r2=1693694&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java (original)
+++ lucene/dev/branches/branch_5x/lucene/sandbox/src/test/org/apache/lucene/rangetree/TestRangeTree.java Sat Aug 1 09:40:36 2015
@@ -143,7 +143,7 @@ public class TestRangeTree extends Lucen
}
IndexReader r = w.getReader();
w.close();
- // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
int iters = atLeast(100);
@@ -230,7 +230,7 @@ public class TestRangeTree extends Lucen
}
IndexReader r = w.getReader();
w.close();
- // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
int iters = atLeast(100);
@@ -407,7 +407,7 @@ public class TestRangeTree extends Lucen
final IndexReader r = DirectoryReader.open(w, true);
w.close();
- // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the NumericRangeTreeQuery must see the RangeTreeDVFormat:
final IndexSearcher s = newSearcher(r, false);
int numThreads = TestUtil.nextInt(random(), 2, 5);
@@ -545,7 +545,7 @@ public class TestRangeTree extends Lucen
w.addDocument(doc);
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
// Need to run a query so the DV field is really loaded:
TopDocs hits = s.search(new NumericRangeTreeQuery("value", -30L, true, 187L, true), 1);
@@ -570,7 +570,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(1, s.count(new NumericRangeTreeQuery("value", Long.MIN_VALUE, true, 0L, true)));
@@ -595,7 +595,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(1, s.count(new SortedSetRangeTreeQuery("value", new BytesRef("aaa"), true, new BytesRef("bbb"), true)));
@@ -628,7 +628,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(2, s.count(new NumericRangeTreeQuery("value", Long.MIN_VALUE, true, Long.MAX_VALUE, true)));
@@ -656,7 +656,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(2, s.count(new SortedSetRangeTreeQuery("value", longToBytes(Long.MIN_VALUE), true, longToBytes(Long.MAX_VALUE), true)));
@@ -684,7 +684,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(0, s.count(new SortedSetRangeTreeQuery("value", new BytesRef("m"), true, new BytesRef("n"), false)));
@@ -708,7 +708,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(0, s.count(new NumericRangeTreeQuery("value", 17L, true, 13L, false)));
@@ -725,7 +725,7 @@ public class TestRangeTree extends Lucen
IndexReader r = w.getReader();
- // We can't wrap with "exotic" readers because the query must see the NumericTreeDVFormat:
+ // We can't wrap with "exotic" readers because the query must see the RangeTreeDVFormat:
IndexSearcher s = newSearcher(r, false);
assertEquals(0, s.count(new NumericRangeTreeQuery("value", 17L, true, 13L, false)));