Paste P6502

SonarEmptyLabelServiceOptimizer
ActivePublic

Authored by Gehel on Fri, Dec 22, 1:34 PM.
1​package org.wikidata.query.rdf.blazegraph.label;
2
3​import java.util.stream.Stream;
4
5
6​public class SonarEmptyLabelServiceOptimizer {
7
8​ protected void optimizeJoinGroup() {
9​ getLabelServiceNodes().forEach(service -> {
10​ JoinGroupNode g = service.getGraphPattern();
11​ for (Object st : g.args()) {
12​ if (st.equals("")) {
13​ continue;
14​ }
15​ break;
16​ }
17​ });
18​ }
19
20​ private Stream<ServiceNode> getLabelServiceNodes() { return null; }
21​ private static final class JoinGroupNode {
22​ public Iterable<Object> args() { return null; }
23​ }
24​ private static final class ServiceNode {
25​ public JoinGroupNode getGraphPattern() { return null; }
26​ }
27​}
Gehel created this paste.Fri, Dec 22, 1:34 PM