Skip to content

Apache Lucene open-source search software

LUCENE-4811: fix *DVField to extend Field not StoredField

Michael McCandlessd7d8d5fb455c
diff --git a/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java
index 267af743088..d6bbe6658f4 100644
--- a/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/BinaryDocValuesField.java
@@ -39,7 +39,7 @@ import org.apache.lucene.util.BytesRef;
*
* @see BinaryDocValues
* */
-public class BinaryDocValuesField extends StoredField {
+public class BinaryDocValuesField extends Field {
/**
* Type for straight bytes DocValues.
diff --git a/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java
index 346fbee1a5b..2444a8579a4 100644
--- a/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/NumericDocValuesField.java
@@ -33,7 +33,7 @@ import org.apache.lucene.index.FieldInfo;
* separate {@link StoredField} instance.
* */
-public class NumericDocValuesField extends StoredField {
+public class NumericDocValuesField extends Field {
/**
* Type for numeric DocValues.
diff --git a/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java
index e8103e98eca..926a48eca04 100644
--- a/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/SortedDocValuesField.java
@@ -36,7 +36,7 @@ import org.apache.lucene.util.BytesRef;
*
* */
-public class SortedDocValuesField extends StoredField {
+public class SortedDocValuesField extends Field {
/**
* Type for sorted bytes DocValues
diff --git a/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java b/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java
index 5b855adc695..189fa3f27ed 100644
--- a/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/SortedSetDocValuesField.java
@@ -37,7 +37,7 @@ import org.apache.lucene.util.BytesRef;
*
* */
-public class SortedSetDocValuesField extends StoredField {
+public class SortedSetDocValuesField extends Field {
/**
* Type for sorted bytes DocValues
diff --git a/lucene/core/src/java/org/apache/lucene/index/StorableFieldType.java b/lucene/core/src/java/org/apache/lucene/index/StorableFieldType.java
deleted file mode 100644
index 36c04697a42..00000000000
--- a/lucene/core/src/java/org/apache/lucene/index/StorableFieldType.java
+++ /dev/null
@@ -1,33 +0,0 @@
-package org.apache.lucene.index;
-
-import org.apache.lucene.index.FieldInfo.DocValuesType;
-
-/*
- * 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.
- */
-
-// TODO: Move some properties from IndexableFieldType here, those regarding stored fields.
-
-/**
- * Describes the properties of a stored field.
- * @lucene.experimental
- */
-public interface StorableFieldType {
-
- /** DocValues type; if non-null then the field's value
- * will be indexed into docValues */
- public DocValuesType docValueType();
-}