Package org.elasticsearch.test
Class FieldMaskingReader
java.lang.Object
org.apache.lucene.index.IndexReader
org.apache.lucene.index.CompositeReader
org.apache.lucene.index.BaseCompositeReader<org.apache.lucene.index.LeafReader>
org.apache.lucene.index.DirectoryReader
org.apache.lucene.index.FilterDirectoryReader
org.elasticsearch.test.FieldMaskingReader
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FieldMaskingReader
extends org.apache.lucene.index.FilterDirectoryReader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.FilterDirectoryReader
org.apache.lucene.index.FilterDirectoryReader.DelegatingCacheHelper, org.apache.lucene.index.FilterDirectoryReader.SubReaderWrapperNested classes/interfaces inherited from class org.apache.lucene.index.IndexReader
org.apache.lucene.index.IndexReader.CacheHelper, org.apache.lucene.index.IndexReader.CacheKey, org.apache.lucene.index.IndexReader.ClosedListener -
Field Summary
Fields inherited from class org.apache.lucene.index.FilterDirectoryReader
inFields inherited from class org.apache.lucene.index.DirectoryReader
directoryFields inherited from class org.apache.lucene.index.BaseCompositeReader
subReadersSorter -
Constructor Summary
ConstructorsConstructorDescriptionFieldMaskingReader(String field, org.apache.lucene.index.DirectoryReader in) FieldMaskingReader(Set<String> fields, org.apache.lucene.index.DirectoryReader in) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.index.DirectoryReaderdoWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in) org.apache.lucene.index.IndexReader.CacheHelperMethods inherited from class org.apache.lucene.index.FilterDirectoryReader
doClose, doOpenIfChanged, doOpenIfChanged, doOpenIfChanged, getDelegate, getIndexCommit, getVersion, isCurrent, unwrapMethods inherited from class org.apache.lucene.index.DirectoryReader
directory, indexExists, listCommits, open, open, open, open, open, open, openIfChanged, openIfChanged, openIfChanged, openIfChangedMethods inherited from class org.apache.lucene.index.BaseCompositeReader
docFreq, document, getDocCount, getSequentialSubReaders, getSumDocFreq, getSumTotalTermFreq, getTermVectors, maxDoc, numDocs, readerBase, readerIndex, storedFields, termVectors, totalTermFreqMethods inherited from class org.apache.lucene.index.CompositeReader
getContext, toStringMethods inherited from class org.apache.lucene.index.IndexReader
close, decRef, document, document, ensureOpen, equals, getRefCount, getTermVector, hasDeletions, hashCode, incRef, leaves, notifyReaderClosedListeners, numDeletedDocs, registerParentReader, tryIncRef
-
Constructor Details
-
FieldMaskingReader
public FieldMaskingReader(String field, org.apache.lucene.index.DirectoryReader in) throws IOException - Throws:
IOException
-
FieldMaskingReader
public FieldMaskingReader(Set<String> fields, org.apache.lucene.index.DirectoryReader in) throws IOException - Throws:
IOException
-
-
Method Details
-
doWrapDirectoryReader
protected org.apache.lucene.index.DirectoryReader doWrapDirectoryReader(org.apache.lucene.index.DirectoryReader in) throws IOException - Specified by:
doWrapDirectoryReaderin classorg.apache.lucene.index.FilterDirectoryReader- Throws:
IOException
-
getReaderCacheHelper
public org.apache.lucene.index.IndexReader.CacheHelper getReaderCacheHelper()- Specified by:
getReaderCacheHelperin classorg.apache.lucene.index.IndexReader
-