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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user