forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move FieldValueFetcher into server module
Moved FieldValueFetcher in the mappers package so that it can be retrieved through the MappedFieldType and remove the instanceof clause
- Loading branch information
Showing
5 changed files
with
85 additions
and
97 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
server/src/main/java/org/elasticsearch/index/mapper/FieldValueFetcher.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
package org.elasticsearch.index.mapper; | ||
|
||
import org.apache.lucene.index.LeafReaderContext; | ||
import org.elasticsearch.index.fielddata.FormattedDocValues; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Interface for retrieving field values by reading field data | ||
*/ | ||
public interface FieldValueFetcher { | ||
|
||
/** | ||
* Return the field data leaf reader for one or more fields. | ||
* @return a map with the field name as a key and field data leaf reader as value | ||
*/ | ||
Map<String, FormattedDocValues> getLeaves(LeafReaderContext context); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 0 additions & 94 deletions
94
x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/downsample/FieldValueFetcher.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters