lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhershko <...@git.apache.org>
Subject [GitHub] lucenenet pull request: Lucene.net.codecs.memory
Date Sun, 01 Feb 2015 22:38:02 GMT
Github user synhershko commented on a diff in the pull request:

    https://github.com/apache/lucenenet/pull/69#discussion_r23902204
  
    --- Diff: src/Lucene.Net.Codecs/Memory/DirectPostingsFormat.cs ---
    @@ -353,40 +344,30 @@ public DirectField(SegmentReadState state, string field, Terms termsIn,
int minS
     
                     this.minSkipCount = minSkipCount;
     
    -                hasFreq = fieldInfo.IndexOptions.compareTo(IndexOptions.DOCS_ONLY) >
0;
    -                hasPos = fieldInfo.IndexOptions.compareTo(IndexOptions.DOCS_AND_FREQS)
> 0;
    -                hasOffsets_Renamed = fieldInfo.IndexOptions.compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS)
> 0;
    -                hasPayloads_Renamed = fieldInfo.hasPayloads();
    +                hasFreq = fieldInfo.FieldIndexOptions.Value.CompareTo(IndexOptions.DOCS_ONLY)
> 0;
    +                hasPos = fieldInfo.FieldIndexOptions.Value.CompareTo(IndexOptions.DOCS_AND_FREQS)
> 0;
    +                hasOffsets_Renamed = fieldInfo.FieldIndexOptions.Value.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS)
> 0;
    +                hasPayloads_Renamed = fieldInfo.HasPayloads();
     
                     BytesRef term;
                     DocsEnum docsEnum = null;
                     DocsAndPositionsEnum docsAndPositionsEnum = null;
    -//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
    -//ORIGINAL LINE: final index.TermsEnum termsEnum = termsIn.iterator(null);
    -                TermsEnum termsEnum = termsIn.iterator(null);
    +                TermsEnum termsEnum = termsIn.Iterator(null);
    --- End diff --
    
    `GetEnumerator` ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message