コード例 #1
0
 public override DocValuesProducer NormsProducer(SegmentReadState state)
 {
     return(new Lucene42DocValuesProducer(state, DATA_CODEC, DATA_EXTENSION, METADATA_CODEC, METADATA_EXTENSION));
 }
コード例 #2
0
 public override FieldsProducer FieldsProducer(SegmentReadState state)
 {
     return(new Lucene3xFields(state.Directory, state.FieldInfos, state.SegmentInfo, state.Context, state.TermsIndexDivisor));
 }
コード例 #3
0
 public override PostingsReaderBase PostingsReaderBase(SegmentReadState state)
 {
     return(new Lucene41PostingsReader(state.Directory, state.FieldInfos, state.SegmentInfo, state.Context, state.SegmentSuffix));
 }
コード例 #4
0
ファイル: NormsFormat.cs プロジェクト: voquanghoa/YAFNET
 /// <summary>
 /// Returns a <see cref="DocValuesProducer"/> to read norms from the index.
 /// <para/>
 /// NOTE: by the time this call returns, it must hold open any files it will
 /// need to use; else, those files may be deleted. Additionally, required files
 /// may be deleted during the execution of this call before there is a chance
 /// to open them. Under these circumstances an <see cref="System.IO.IOException"/> should be thrown by
 /// the implementation. <see cref="System.IO.IOException"/> are expected and will automatically cause
 /// a retry of the segment opening logic with the newly revised segments.
 /// </summary>
 public abstract DocValuesProducer NormsProducer(SegmentReadState state);
コード例 #5
0
ファイル: PostingsBaseFormat.cs プロジェクト: wow64bb/YAFNET
 /// <summary>
 /// Creates the <see cref="Codecs.PostingsReaderBase"/> for this
 /// format.
 /// </summary>
 public abstract PostingsReaderBase PostingsReaderBase(SegmentReadState state);