LUCENE-3728: consistently deprecate all 3.x codec classes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3661@1237295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-01-29 14:13:11 +00:00
parent 9c22385c55
commit 438ec3ce0b
7 changed files with 13 additions and 6 deletions

View File

@ -43,7 +43,9 @@ import org.apache.lucene.util.MutableBits;
/**
* Supports the Lucene 3.x index format (readonly)
* @deprecated
*/
@Deprecated
public class Lucene3xCodec extends Codec {
public Lucene3xCodec() {
super("Lucene3x");

View File

@ -34,7 +34,9 @@ import org.apache.lucene.store.IndexInput;
/**
* @lucene.experimental
* @deprecated
*/
@Deprecated
public class Lucene3xFieldInfosReader extends FieldInfosReader {
/** Extension of field infos */
static final String FIELD_INFOS_EXTENSION = "fnm";

View File

@ -26,7 +26,6 @@ import org.apache.lucene.codecs.PerDocProducer;
import org.apache.lucene.index.PerDocWriteState;
import org.apache.lucene.index.SegmentInfo;
import org.apache.lucene.index.SegmentReadState;
import org.apache.lucene.store.Directory;
/**
* Lucene3x ReadOnly NormsFormat implementation

View File

@ -43,7 +43,9 @@ import org.apache.lucene.util.StringHelper;
/**
* Reads Lucene 3.x norms format and exposes it via DocValues API
* @lucene.experimental
* @deprecated
*/
@Deprecated
class Lucene3xNormsProducer extends PerDocProducer {
/** norms header placeholder */
@ -52,9 +54,7 @@ class Lucene3xNormsProducer extends PerDocProducer {
/** Extension of norms file */
static final String NORMS_EXTENSION = "nrm";
/** Extension of separate norms file
* @deprecated */
@Deprecated
/** Extension of separate norms file */
static final String SEPARATE_NORMS_EXTENSION = "s";
final Map<String,NormsDocValues> norms = new HashMap<String,NormsDocValues>();
@ -203,8 +203,6 @@ class Lucene3xNormsProducer extends PerDocProducer {
}
}
/** @deprecated */
@Deprecated
static void separateFiles(SegmentInfo info, Set<String> files) throws IOException {
Map<Integer,Long> normGen = info.getNormGen();
if (normGen != null) {

View File

@ -37,7 +37,9 @@ import org.apache.lucene.store.IOContext;
/**
* Lucene 3x implementation of {@link SegmentInfosReader}.
* @lucene.experimental
* @deprecated
*/
@Deprecated
public class Lucene3xSegmentInfosReader extends SegmentInfosReader {
@Override

View File

@ -45,6 +45,8 @@ import org.apache.lucene.util.Bits;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.IOUtils;
/** @deprecated */
@Deprecated
public class Lucene3xTermVectorsReader extends TermVectorsReader {
// NOTE: if you make a new format, it must be larger than

View File

@ -36,7 +36,9 @@ import org.apache.lucene.util.packed.PackedInts;
* index segment. Pairs are accessed either by Term or by ordinal position the
* set. The Terms and TermInfo are actually serialized and stored into a byte
* array and pointers to the position of each are stored in a int array.
* @deprecated
*/
@Deprecated
class TermInfosReaderIndex {
private static final int MAX_PAGE_BITS = 18; // 256 KB block