상속: FieldsConsumer
예제 #1
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance  = outerInstance;
     _indexOptions   = field.FieldIndexOptions.Value;
     _writePositions = _indexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     _writeOffsets   = _indexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
 }
예제 #2
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _indexOptions  = field.IndexOptions;
     // LUCENENET specific - to avoid boxing, changed from CompareTo() to IndexOptionsComparer.Compare()
     _writePositions = IndexOptionsComparer.Default.Compare(_indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     _writeOffsets   = IndexOptionsComparer.Default.Compare(_indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
 }
예제 #3
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     this.outerInstance = outerInstance;
     indexOptions       = field.IndexOptions;
     // LUCENENET specific - to avoid boxing, changed from CompareTo() to IndexOptionsComparer.Compare()
     writePositions = IndexOptionsComparer.Default.Compare(indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0;
     writeOffsets   = IndexOptionsComparer.Default.Compare(indexOptions, IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0;
     //System.out.println("writeOffsets=" + writeOffsets);
     //System.out.println("writePos=" + writePositions);
 }
예제 #4
0
 public SimpleTextTermsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _postingsWriter = new SimpleTextPostingsWriter(outerInstance, field);
 }
예제 #5
0
 public SimpleTextTermsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _postingsWriter = new SimpleTextPostingsWriter(outerInstance, field);
 }
예제 #6
0
 public SimpleTextPostingsWriter(SimpleTextFieldsWriter outerInstance, FieldInfo field)
 {
     _outerInstance = outerInstance;
     _indexOptions = field.FieldIndexOptions.Value;
     _writePositions = _indexOptions >= IndexOptions.DOCS_AND_FREQS_AND_POSITIONS;
     _writeOffsets = _indexOptions >= IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS;
 }