コード例 #1
0
ファイル: IndexReader.cs プロジェクト: ugurmutlucan15/YAFNET
 public static DirectoryReader Open(IndexCommit commit, int termInfosIndexDivisor)
 {
     return(DirectoryReader.Open(commit, termInfosIndexDivisor));
 }
コード例 #2
0
ファイル: IndexReader.cs プロジェクト: ugurmutlucan15/YAFNET
 public static DirectoryReader Open(IndexWriter writer, bool applyAllDeletes)
 {
     return(DirectoryReader.Open(writer, applyAllDeletes));
 }
コード例 #3
0
ファイル: IndexReader.cs プロジェクト: ugurmutlucan15/YAFNET
 public static DirectoryReader Open(IndexCommit commit)
 {
     return(DirectoryReader.Open(commit));
 }
コード例 #4
0
ファイル: IndexReader.cs プロジェクト: ugurmutlucan15/YAFNET
 public static DirectoryReader Open(Directory directory)
 {
     return(DirectoryReader.Open(directory));
 }
コード例 #5
0
ファイル: IndexReader.cs プロジェクト: ugurmutlucan15/YAFNET
 public static DirectoryReader Open(Directory directory, int termInfosIndexDivisor)
 {
     return(DirectoryReader.Open(directory, termInfosIndexDivisor));
 }
コード例 #6
0
 private DirectoryReader WrapDirectoryReader(DirectoryReader input)
 {
     return(input == null ? null : DoWrapDirectoryReader(input));
 }
コード例 #7
0
 /// <summary>
 /// Create a new <see cref="FilterDirectoryReader"/> that filters a passed in <see cref="DirectoryReader"/>. </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to filter </param>
 public FilterDirectoryReader(DirectoryReader input)
     : this(input, new StandardReaderWrapper())
 {
 }
コード例 #8
0
 /// <summary>
 /// Called by the <see cref="DoOpenIfChanged()"/> methods to return a new wrapped <see cref="DirectoryReader"/>.
 /// <para/>
 /// Implementations should just return an instance of themselves, wrapping the
 /// passed in <see cref="DirectoryReader"/>.
 /// </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to wrap </param>
 /// <returns> the wrapped <see cref="DirectoryReader"/> </returns>
 protected abstract DirectoryReader DoWrapDirectoryReader(DirectoryReader input);
コード例 #9
0
 /// <summary>
 /// Create a new <see cref="FilterDirectoryReader"/> that filters a passed in <see cref="DirectoryReader"/>,
 /// using the supplied <see cref="SubReaderWrapper"/> to wrap its subreader. </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to filter </param>
 /// <param name="wrapper"> the <see cref="SubReaderWrapper"/> to use to wrap subreaders </param>
 public FilterDirectoryReader(DirectoryReader input, SubReaderWrapper wrapper)
     : base(input.Directory, wrapper.Wrap(input.GetSequentialSubReaders().OfType <AtomicReader>().ToList()))
 {
     this.m_input = input;
 }
コード例 #10
0
 /// <summary>
 /// Create a new <see cref="FilterDirectoryReader"/> that filters a passed in <see cref="DirectoryReader"/>,
 /// using the supplied <see cref="SubReaderWrapper"/> to wrap its subreader. </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to filter </param>
 /// <param name="wrapper"> the <see cref="SubReaderWrapper"/> to use to wrap subreaders </param>
 public FilterDirectoryReader(DirectoryReader input, SubReaderWrapper wrapper)
     : base(input.Directory, wrapper.Wrap(input.GetSequentialSubReaders()))
 {
     this.m_input = input;
 }
コード例 #11
0
 /// <summary>
 /// Create a new <see cref="FilterDirectoryReader"/> that filters a passed in <see cref="DirectoryReader"/>. </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to filter </param>
 protected FilterDirectoryReader(DirectoryReader input) // LUCENENET: CA1012: Abstract types should not have constructors (marked protected)
     : this(input, new StandardReaderWrapper())
 {
 }
コード例 #12
0
 /// <summary>
 /// Create a new <see cref="FilterDirectoryReader"/> that filters a passed in <see cref="DirectoryReader"/>,
 /// using the supplied <see cref="SubReaderWrapper"/> to wrap its subreader. </summary>
 /// <param name="input"> the <see cref="DirectoryReader"/> to filter </param>
 /// <param name="wrapper"> the <see cref="SubReaderWrapper"/> to use to wrap subreaders </param>
 protected FilterDirectoryReader(DirectoryReader input, SubReaderWrapper wrapper) // LUCENENET: CA1012: Abstract types should not have constructors (marked protected)
     : base(input.Directory, wrapper.Wrap(input.GetSequentialSubReaders()))
 {
     this.m_input = input;
 }