From 88b483cbbdf2aa03ef1f2120b8742607eabd2113 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 23 May 2012 07:51:56 +0000 Subject: [PATCH] LUCENE-4051: Use Codec File Headers for Lucene40 StoredFields, DocValues, Norms & TermVectors git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1341768 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene40/Lucene40StoredFieldsFormat.java | 7 +- .../lucene40/Lucene40StoredFieldsReader.java | 51 +++++++------ .../lucene40/Lucene40StoredFieldsWriter.java | 24 +++---- .../lucene40/Lucene40TermVectorsFormat.java | 13 ++-- .../lucene40/Lucene40TermVectorsReader.java | 72 +++++++------------ .../lucene40/Lucene40TermVectorsWriter.java | 20 ++++-- .../lucene/codecs/lucene40/values/Bytes.java | 38 ++++++---- .../lucene40/values/FixedDerefBytesImpl.java | 8 ++- .../lucene40/values/FixedSortedBytesImpl.java | 7 +- .../values/FixedStraightBytesImpl.java | 16 ++--- .../lucene40/values/VarDerefBytesImpl.java | 8 ++- .../lucene40/values/VarSortedBytesImpl.java | 8 ++- .../lucene40/values/VarStraightBytesImpl.java | 8 ++- 13 files changed, 143 insertions(+), 137 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsFormat.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsFormat.java index 240d16df225..32b03e51e0c 100644 --- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsFormat.java +++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsFormat.java @@ -28,6 +28,7 @@ import org.apache.lucene.index.SegmentInfo; import org.apache.lucene.store.DataOutput; // javadocs import org.apache.lucene.store.Directory; import org.apache.lucene.store.IOContext; +import org.apache.lucene.util.CodecUtil; /** * Lucene 4.0 Stored Fields Format. @@ -42,7 +43,8 @@ import org.apache.lucene.store.IOContext; *

This contains, for each document, a pointer to its field data, as * follows:

* * @@ -50,7 +52,8 @@ import org.apache.lucene.store.IOContext; *

The field data, or .fdt file.

*

This contains the stored fields of each document, as follows:

*