|
22 | 22 | import com.google.gson.Gson; |
23 | 23 | import com.google.gson.JsonElement; |
24 | 24 | import com.google.gson.JsonObject; |
| 25 | +import java.util.ArrayList; |
| 26 | +import java.util.List; |
| 27 | +import java.util.Map; |
| 28 | +import java.util.function.Function; |
| 29 | +import java.util.stream.Collectors; |
25 | 30 | import javax.annotation.Nullable; |
26 | 31 | import org.apache.commons.lang3.StringUtils; |
27 | 32 | import org.apache.skywalking.library.elasticsearch.requests.search.BoolQueryBuilder; |
|
58 | 63 | import org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.IndexController; |
59 | 64 | import org.apache.skywalking.oap.server.storage.plugin.elasticsearch.base.MatchCNameBuilder; |
60 | 65 |
|
61 | | -import java.util.ArrayList; |
62 | | -import java.util.List; |
63 | | -import java.util.Map; |
64 | | -import java.util.function.Function; |
65 | | -import java.util.stream.Collectors; |
66 | | - |
67 | 66 | import static org.apache.skywalking.oap.server.core.analysis.manual.instance.InstanceTraffic.PropertyUtil.LANGUAGE; |
68 | 67 |
|
69 | 68 | public class MetadataQueryEsDAO extends EsDAO implements IMetadataQueryDAO { |
@@ -418,14 +417,6 @@ public Process getProcess(String processId) { |
418 | 417 | return null; |
419 | 418 | } |
420 | 419 |
|
421 | | - private List<Service> buildServices(SearchResponse response) { |
422 | | - List<Service> services = new ArrayList<>(); |
423 | | - for (SearchHit hit : response.getHits()) { |
424 | | - services.add(searchHitServiceFunction.apply(hit)); |
425 | | - } |
426 | | - return services; |
427 | | - } |
428 | | - |
429 | 420 | private List<ServiceInstance> buildInstances(SearchResponse response) { |
430 | 421 | List<ServiceInstance> serviceInstances = new ArrayList<>(); |
431 | 422 | for (SearchHit searchHit : response.getHits()) { |
|
0 commit comments