You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2016/03/05 10:50:39 UTC

lucene-solr git commit: add END to the end of SimpleText's points data file

Repository: lucene-solr
Updated Branches:
  refs/heads/master a15845ea5 -> 9c8cbefbf


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/9c8cbefb
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9c8cbefb
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9c8cbefb

Branch: refs/heads/master
Commit: 9c8cbefbff52c5ae483adf08993278a0802f3e58
Parents: a15845e
Author: Mike McCandless <mi...@apache.org>
Authored: Sat Mar 5 04:51:14 2016 -0500
Committer: Mike McCandless <mi...@apache.org>
Committed: Sat Mar 5 04:51:14 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/9c8cbefb/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);
   }