From 8d971680ea7c24578b6210c1e6bf95cfcbddc3fe Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 15 Dec 2015 11:08:09 +0000 Subject: [PATCH] LUCENE_6917: missed a few deprecations git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720116 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/document/FieldType.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lucene/core/src/java/org/apache/lucene/document/FieldType.java b/lucene/core/src/java/org/apache/lucene/document/FieldType.java index f6921e78864..a891f5f6e8e 100644 --- a/lucene/core/src/java/org/apache/lucene/document/FieldType.java +++ b/lucene/core/src/java/org/apache/lucene/document/FieldType.java @@ -18,6 +18,7 @@ package org.apache.lucene.document; */ import org.apache.lucene.analysis.Analyzer; // javadocs +import org.apache.lucene.index.DimensionalValues; // javadocs import org.apache.lucene.index.DocValuesType; import org.apache.lucene.index.IndexOptions; import org.apache.lucene.index.IndexableFieldType; @@ -30,7 +31,10 @@ public class FieldType implements IndexableFieldType { /** Data type of the numeric value * @since 3.2 + * + * @deprecated Please switch to {@link DimensionalValues} instead */ + @Deprecated public enum LegacyNumericType { /** 32-bit integer numeric type */ INT, @@ -299,7 +303,10 @@ public class FieldType implements IndexableFieldType { * @throws IllegalStateException if this FieldType is frozen against * future modifications. * @see #numericType() + * + * @deprecated Please switch to {@link DimensionalValues} instead */ + @Deprecated public void setNumericType(LegacyNumericType type) { checkIfFrozen(); numericType = type; @@ -312,7 +319,10 @@ public class FieldType implements IndexableFieldType { *

* The default is null (no numeric type) * @see #setNumericType(org.apache.lucene.document.FieldType.LegacyNumericType) + * + * @deprecated Please switch to {@link DimensionalValues} instead */ + @Deprecated public LegacyNumericType numericType() { return numericType; } @@ -324,7 +334,10 @@ public class FieldType implements IndexableFieldType { * @throws IllegalStateException if this FieldType is frozen against * future modifications. * @see #numericPrecisionStep() + * + * @deprecated Please switch to {@link DimensionalValues} instead */ + @Deprecated public void setNumericPrecisionStep(int precisionStep) { checkIfFrozen(); if (precisionStep < 1) { @@ -340,7 +353,10 @@ public class FieldType implements IndexableFieldType { *

* The default is {@link org.apache.lucene.util.LegacyNumericUtils#PRECISION_STEP_DEFAULT} * @see #setNumericPrecisionStep(int) + * + * @deprecated Please switch to {@link DimensionalValues} instead */ + @Deprecated public int numericPrecisionStep() { return numericPrecisionStep; }