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 2021/01/29 20:26:57 UTC
[lucene-solr] 03/03: LUCENE-9694: fix other precommit issues,
including unused import,
but most importantly that DocumentSelector was accidentally package private,
making it difficult to use
This is an automated email from the ASF dual-hosted git repository.
mikemccand pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 6f913a2bc7cdac73056290b8a8212c53ec9b4561
Author: Mike McCandless <mi...@apache.org>
AuthorDate: Fri Jan 29 15:26:06 2021 -0500
LUCENE-9694: fix other precommit issues, including unused import, but most importantly that DocumentSelector was accidentally package private, making it difficult to use
---
.../apache/lucene/misc/index/IndexRearranger.java | 2 +-
.../org/apache/lucene/misc/index/package-info.java | 21 +++++++++++++++++++++
.../lucene/misc/index/TestIndexRearranger.java | 1 -
3 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/IndexRearranger.java b/lucene/misc/src/java/org/apache/lucene/misc/index/IndexRearranger.java
index 194cd69..17fb74d 100644
--- a/lucene/misc/src/java/org/apache/lucene/misc/index/IndexRearranger.java
+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/IndexRearranger.java
@@ -130,7 +130,7 @@ public class IndexRearranger {
}
/** Select document within a CodecReader */
- interface DocumentSelector {
+ public interface DocumentSelector {
BitSet getFilteredLiveDocs(CodecReader reader) throws IOException;
}
}
diff --git a/lucene/misc/src/java/org/apache/lucene/misc/index/package-info.java b/lucene/misc/src/java/org/apache/lucene/misc/index/package-info.java
new file mode 100644
index 0000000..dc65b9a
--- /dev/null
+++ b/lucene/misc/src/java/org/apache/lucene/misc/index/package-info.java
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Miscellaneous index tools.
+ */
+package org.apache.lucene.misc.index;
diff --git a/lucene/misc/src/test/org/apache/lucene/misc/index/TestIndexRearranger.java b/lucene/misc/src/test/org/apache/lucene/misc/index/TestIndexRearranger.java
index 0189112..77f6aaf 100644
--- a/lucene/misc/src/test/org/apache/lucene/misc/index/TestIndexRearranger.java
+++ b/lucene/misc/src/test/org/apache/lucene/misc/index/TestIndexRearranger.java
@@ -20,7 +20,6 @@ package org.apache.lucene.misc.index;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
-import java.util.List;
import org.apache.lucene.document.BinaryDocValuesField;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.NumericDocValuesField;