AbstractLuceneIndex: Pass in index name

Index implementations that maintain sub-indexes, like change index with
open and close sub-indexes, would pass both, index name and sub-index
name. Sub-index name is needed for marking thread pool with this name,
index name is used later in this series to set ready bit on index. So
this change is a preparation change to properly handle multiple indexes.

Change-Id: I7490194b7d188d8783035cc6d919dd02e05edc08
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
David Ostrovsky
2016-04-17 22:05:08 +02:00
parent 80ebb4529e
commit a209d9a4c4
3 changed files with 14 additions and 8 deletions

View File

@@ -70,10 +70,11 @@ public class ChangeSchemaDefinitions extends SchemaDefinitions<ChangeData> {
static final Schema<ChangeData> V29 =
schema(V28, ChangeField.HASHTAG_CASE_AWARE);
public static final String NAME = "changes";
public static final ChangeSchemaDefinitions INSTANCE =
new ChangeSchemaDefinitions();
private ChangeSchemaDefinitions() {
super("changes", ChangeData.class);
super(NAME, ChangeData.class);
}
}