mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
8d11217ea4
commit
8f753ac3ac
3 changed files with 2 additions and 12 deletions
|
@ -13,7 +13,6 @@ import java.util.stream.Collectors;
|
||||||
* Created by andrewvc on 9/15/16.
|
* Created by andrewvc on 9/15/16.
|
||||||
*/
|
*/
|
||||||
public class IfVertex extends Vertex {
|
public class IfVertex extends Vertex {
|
||||||
private volatile String generatedId;
|
|
||||||
|
|
||||||
public BooleanExpression getBooleanExpression() {
|
public BooleanExpression getBooleanExpression() {
|
||||||
return booleanExpression;
|
return booleanExpression;
|
||||||
|
|
|
@ -13,7 +13,6 @@ import org.logstash.config.ir.SourceComponent;
|
||||||
public class PluginVertex extends Vertex {
|
public class PluginVertex extends Vertex {
|
||||||
private final SourceWithMetadata meta;
|
private final SourceWithMetadata meta;
|
||||||
private final PluginDefinition pluginDefinition;
|
private final PluginDefinition pluginDefinition;
|
||||||
private volatile String generatedId;
|
|
||||||
|
|
||||||
public PluginDefinition getPluginDefinition() {
|
public PluginDefinition getPluginDefinition() {
|
||||||
return pluginDefinition;
|
return pluginDefinition;
|
||||||
|
@ -66,10 +65,4 @@ public class PluginVertex extends Vertex {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void clearCache() {
|
|
||||||
super.clearCache();
|
|
||||||
this.generatedId = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,16 +45,14 @@ public class BreadthFirst {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return new BfsResult(vertexDistances, vertexParents);
|
return new BfsResult(vertexDistances);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class BfsResult {
|
public static final class BfsResult {
|
||||||
public final Map<Vertex, Integer> vertexDistances;
|
public final Map<Vertex, Integer> vertexDistances;
|
||||||
private final Map<Vertex, Vertex> vertexParents;
|
|
||||||
|
|
||||||
BfsResult(Map<Vertex, Integer> vertexDistances, Map<Vertex,Vertex> vertexParents) {
|
BfsResult(Map<Vertex, Integer> vertexDistances) {
|
||||||
this.vertexDistances = vertexDistances;
|
this.vertexDistances = vertexDistances;
|
||||||
this.vertexParents = vertexParents;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Collection<Vertex> getVertices() {
|
public Collection<Vertex> getVertices() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue