Original commit message

ChangeScribe message

LUCENE-4902: Add FilterDirectoryReader

BUG - FEATURE: <type-ID>


This is a state update modifier commit: this change set is composed only of mutator methods, and these methods provide changes related to updates of an object's state. This commit includes changes to internationalization, properties or configuration files (CHANGES.txt). This change set is mainly composed of:


1. Changes to package org.apache.lucene.index:


1.1. Modifications to AssertingDirectoryReader.java:


1.1.1. Modify the parent class DirectoryReader with FilterDirectoryReader

1.1.2. Add constructor invocation at AssertingDirectoryReader(DirectoryReader) method

1.1.3. Remove constructor invocation

1.1.4. Remove assignment statement of this.in at AssertingDirectoryReader(DirectoryReader) constructor

1.1.5. Add a functionality to do wrap directory reader

1.1.6. Remove a private and unused functionality to wrap asserting directory reader

1.1.7. Remove an unused functionality to do open if changed

1.1.8. Remove an unused functionality to do asserting directory reader close

1.1.9. Remove an unused functionality to get index commit

1.1.10. Remove an unused functionality to is current

1.1.11. Remove an unused functionality to get version

1.1.12. Remove (Object state) in attribute


The added/removed methods triggered changes to FilterDirectoryReader class


1.2. Add an abstract DirectoryReader extension for filter directory reader. It allows to:


Instantiate filter directory reader with in directory reader;

Instantiate filter directory reader with in directory reader, sub reader wrapper and sub reader wrapper;

Do wrap directory reader;

Wrap directory reader;

Do open if changed;

Get version;

Check if filter directory reader is current;

Get index commit;

Do filter directory reader close;