lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject lucene-solr git commit: add END to the end of SimpleText's points data file
Date Sat, 05 Mar 2016 09:52:00 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x eab3a48ba -> 23a747bf2


add END to the end of SimpleText's points data file


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/23a747bf
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/23a747bf
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/23a747bf

Branch: refs/heads/branch_6x
Commit: 23a747bf27c0fdccd74426de96541f6c549d3c51
Parents: eab3a48
Author: Mike McCandless <mikemccand@apache.org>
Authored: Sat Mar 5 04:51:14 2016 -0500
Committer: Mike McCandless <mikemccand@apache.org>
Committed: Sat Mar 5 04:51:40 2016 -0500

----------------------------------------------------------------------
 .../lucene/codecs/simpletext/SimpleTextPointWriter.java       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/23a747bf/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextPointWriter.java
----------------------------------------------------------------------
diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextPointWriter.java
b/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextPointWriter.java
index a20e487..1554c0c 100644
--- a/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextPointWriter.java
+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/simpletext/SimpleTextPointWriter.java
@@ -23,10 +23,10 @@ import java.util.Map;
 
 import org.apache.lucene.codecs.PointReader;
 import org.apache.lucene.codecs.PointWriter;
-import org.apache.lucene.index.PointValues.IntersectVisitor;
-import org.apache.lucene.index.PointValues.Relation;
 import org.apache.lucene.index.FieldInfo;
 import org.apache.lucene.index.IndexFileNames;
+import org.apache.lucene.index.PointValues.IntersectVisitor;
+import org.apache.lucene.index.PointValues.Relation;
 import org.apache.lucene.index.SegmentWriteState;
 import org.apache.lucene.store.IndexOutput;
 import org.apache.lucene.util.BytesRef;
@@ -53,6 +53,7 @@ class SimpleTextPointWriter extends PointWriter {
   final static BytesRef MAX_VALUE     = new BytesRef("max value ");
   final static BytesRef POINT_COUNT   = new BytesRef("point count ");
   final static BytesRef DOC_COUNT     = new BytesRef("doc count ");
+  final static BytesRef END           = new BytesRef("END");
 
   private IndexOutput dataOut;
   final BytesRefBuilder scratch = new BytesRefBuilder();
@@ -210,6 +211,8 @@ class SimpleTextPointWriter extends PointWriter {
 
   @Override
   public void finish() throws IOException {
+    SimpleTextUtil.write(dataOut, END);
+    SimpleTextUtil.writeNewline(dataOut);
     SimpleTextUtil.writeChecksum(dataOut, scratch);
   }
 


Mime
View raw message