You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/07/25 20:40:44 UTC

svn commit: r1507087 - /lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java

Author: rmuir
Date: Thu Jul 25 18:40:44 2013
New Revision: 1507087

URL: http://svn.apache.org/r1507087
Log:
LUCENE-5127: fix indent

Modified:
    lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java

Modified: lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java?rev=1507087&r1=1507086&r2=1507087&view=diff
==============================================================================
--- lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java (original)
+++ lucene/dev/branches/lucene5127/lucene/codecs/src/java/org/apache/lucene/codecs/blockterms/FixedGapTermsIndexReader.java Thu Jul 25 18:40:44 2013
@@ -213,48 +213,48 @@ public class FixedGapTermsIndexReader ex
   }
 
   private final class FieldIndexData {
-      // where this field's terms begin in the packed byte[]
-      // data
-      final long termBytesStart;
-
-      // offset into index termBytes
-      final MonotonicBlockPackedReader termOffsets;
-
-      // index pointers into main terms dict
-      final MonotonicBlockPackedReader termsDictOffsets;
-
-      final long numIndexTerms;
-      final long termsStart;
-
-      public FieldIndexData(IndexInput in, long indexStart, long termsStart, long packedIndexStart, long packedOffsetsStart, long numIndexTerms) throws IOException {
-
-        this.termsStart = termsStart;
-        termBytesStart = termBytes.getPointer();
-
-        IndexInput clone = in.clone();
-        clone.seek(indexStart);
-
-        this.numIndexTerms = numIndexTerms;
-        assert this.numIndexTerms  > 0: "numIndexTerms=" + numIndexTerms;
-
-        // slurp in the images from disk:
-          
-        try {
-          final long numTermBytes = packedIndexStart - indexStart;
-          termBytes.copy(clone, numTermBytes);
-
-          // records offsets into main terms dict file
-          // nocommit: actually write these params
-          termsDictOffsets = new MonotonicBlockPackedReader(clone, PackedInts.VERSION_CURRENT, FixedGapTermsIndexWriter.BLOCKSIZE, numIndexTerms, false);
-
-          // records offsets into byte[] term data
-          // nocommit: actually write these params
-          termOffsets = new MonotonicBlockPackedReader(clone, PackedInts.VERSION_CURRENT, FixedGapTermsIndexWriter.BLOCKSIZE, 1+numIndexTerms, false);
-        } finally {
-          clone.close();
-        }
+    // where this field's terms begin in the packed byte[]
+    // data
+    final long termBytesStart;
+    
+    // offset into index termBytes
+    final MonotonicBlockPackedReader termOffsets;
+    
+    // index pointers into main terms dict
+    final MonotonicBlockPackedReader termsDictOffsets;
+    
+    final long numIndexTerms;
+    final long termsStart;
+    
+    public FieldIndexData(IndexInput in, long indexStart, long termsStart, long packedIndexStart, long packedOffsetsStart, long numIndexTerms) throws IOException {
+      
+      this.termsStart = termsStart;
+      termBytesStart = termBytes.getPointer();
+      
+      IndexInput clone = in.clone();
+      clone.seek(indexStart);
+      
+      this.numIndexTerms = numIndexTerms;
+      assert this.numIndexTerms  > 0: "numIndexTerms=" + numIndexTerms;
+      
+      // slurp in the images from disk:
+      
+      try {
+        final long numTermBytes = packedIndexStart - indexStart;
+        termBytes.copy(clone, numTermBytes);
+        
+        // records offsets into main terms dict file
+        // nocommit: actually write these params
+        termsDictOffsets = new MonotonicBlockPackedReader(clone, PackedInts.VERSION_CURRENT, FixedGapTermsIndexWriter.BLOCKSIZE, numIndexTerms, false);
+        
+        // records offsets into byte[] term data
+        // nocommit: actually write these params
+        termOffsets = new MonotonicBlockPackedReader(clone, PackedInts.VERSION_CURRENT, FixedGapTermsIndexWriter.BLOCKSIZE, 1+numIndexTerms, false);
+      } finally {
+        clone.close();
       }
     }
+  }
 
   @Override
   public FieldIndexEnum getFieldEnum(FieldInfo fieldInfo) {