Class FieldFilterAtomicReader
A Lucene.Net.Index.FilterAtomicReader that exposes only a subset
of fields from the underlying wrapped reader.
Inheritance
IndexReader
AtomicReader
FilterAtomicReader
FieldFilterAtomicReader
Inherited Members
FilterAtomicReader.Unwrap(AtomicReader)
FilterAtomicReader.LiveDocs
FilterAtomicReader.NumDocs
FilterAtomicReader.MaxDoc
FilterAtomicReader.CheckIntegrity()
AtomicReader.Context
AtomicReader.AtomicContext
AtomicReader.DocFreq(Term)
AtomicReader.TotalTermFreq(Term)
AtomicReader.GetTermDocsEnum(Term)
AtomicReader.GetTermPositionsEnum(Term)
IndexReader.AddReaderDisposedListener(IReaderDisposedListener)
IndexReader.RemoveReaderDisposedListener(IReaderDisposedListener)
IndexReader.RegisterParentReader(IndexReader)
IndexReader.RefCount
IndexReader.IncRef()
IndexReader.TryIncRef()
IndexReader.DecRef()
IndexReader.GetHashCode()
IndexReader.Open(Directory)
IndexReader.Open(IndexCommit)
IndexReader.NumDeletedDocs
IndexReader.HasDeletions
IndexReader.Dispose()
IndexReader.Leaves
IndexReader.CoreCacheKey
IndexReader.CombinedCoreAndDeletesKey
Assembly: Lucene.Net.TestFramework.dll
Syntax
public sealed class FieldFilterAtomicReader : FilterAtomicReader, IDisposable
Constructors
FieldFilterAtomicReader(AtomicReader, ISet<string>, bool)
A Lucene.Net.Index.FilterAtomicReader that exposes only a subset
of fields from the underlying wrapped reader.
Declaration
public FieldFilterAtomicReader(AtomicReader @in, ISet<string> fields, bool negate)
Parameters
Properties
FieldInfos
Get the Lucene.Net.Index.FieldInfos describing all fields in
this reader.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public override FieldInfos FieldInfos { get; }
Property Value
Type |
Description |
FieldInfos |
|
Overrides
Lucene.Net.Index.FilterAtomicReader.FieldInfos
Fields
Returns Lucene.Net.Index.Fields for this reader.
this property may return null
if the reader has no
postings.
Declaration
public override Fields Fields { get; }
Property Value
Overrides
Lucene.Net.Index.FilterAtomicReader.Fields
Methods
Document(int, StoredFieldVisitor)
Expert: visits the fields of a stored document, for
custom processing/loading of each field. If you
simply want to load all fields, use
Document(int). If you want to load a subset, use
Lucene.Net.Documents.DocumentStoredFieldVisitor.
Declaration
public override void Document(int docID, StoredFieldVisitor visitor)
Parameters
Type |
Name |
Description |
int |
docID |
|
StoredFieldVisitor |
visitor |
|
Overrides
GetBinaryDocValues(string)
Returns Lucene.Net.Index.BinaryDocValues for this field, or
null
if no Lucene.Net.Index.BinaryDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override BinaryDocValues GetBinaryDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
BinaryDocValues |
|
Overrides
GetDocsWithField(string)
Returns a Lucene.Net.Util.IBits at the size of reader.MaxDoc
,
with turned on bits for each docid that does have a value for this field,
or null
if no Lucene.Net.Index.DocValues were indexed for this field. The
returned instance should only be used by a single thread.
Declaration
public override IBits GetDocsWithField(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Overrides
GetNormValues(string)
Returns Lucene.Net.Index.NumericDocValues representing norms
for this field, or null
if no Lucene.Net.Index.NumericDocValues
were indexed. The returned instance should only be
used by a single thread.
Declaration
public override NumericDocValues GetNormValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
NumericDocValues |
|
Overrides
GetNumericDocValues(string)
Returns Lucene.Net.Index.NumericDocValues for this field, or
null if no Lucene.Net.Index.NumericDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override NumericDocValues GetNumericDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
NumericDocValues |
|
Overrides
GetSortedDocValues(string)
Returns Lucene.Net.Index.SortedDocValues for this field, or
null
if no Lucene.Net.Index.SortedDocValues were indexed for
this field. The returned instance should only be
used by a single thread.
Declaration
public override SortedDocValues GetSortedDocValues(string field)
Parameters
Type |
Name |
Description |
string |
field |
|
Returns
Type |
Description |
SortedDocValues |
|
Overrides
GetTermVectors(int)
Retrieve term vectors for this document, or null
if
term vectors were not indexed. The returned Lucene.Net.Index.Fields
instance acts like a single-document inverted index
(the docID will be 0).
Declaration
public override Fields GetTermVectors(int docID)
Parameters
Type |
Name |
Description |
int |
docID |
|
Returns
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
string |
A string that represents the current object.
|
Overrides
Lucene.Net.Index.FilterAtomicReader.ToString()
Implements