Java Code Examples for org.apache.flink.runtime.jobgraph.JobVertexID#fromHexString()
The following examples show how to use
org.apache.flink.runtime.jobgraph.JobVertexID#fromHexString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JsonGeneratorTest.java From Flink-CEPplus with Apache License 2.0 | 5 votes |
private void checkVertexExists(String vertexId, JobGraph graph) { // validate that the vertex has a valid JobVertexID id = JobVertexID.fromHexString(vertexId); for (JobVertex vertex : graph.getVertices()) { if (vertex.getID().equals(id)) { return; } } fail("could not find vertex with id " + vertexId + " in JobGraph"); }
Example 2
Source File: JsonGeneratorTest.java From flink with Apache License 2.0 | 5 votes |
private void checkVertexExists(String vertexId, JobGraph graph) { // validate that the vertex has a valid JobVertexID id = JobVertexID.fromHexString(vertexId); for (JobVertex vertex : graph.getVertices()) { if (vertex.getID().equals(id)) { return; } } fail("could not find vertex with id " + vertexId + " in JobGraph"); }
Example 3
Source File: JsonGeneratorTest.java From flink with Apache License 2.0 | 5 votes |
private void checkVertexExists(String vertexId, JobGraph graph) { // validate that the vertex has a valid JobVertexID id = JobVertexID.fromHexString(vertexId); for (JobVertex vertex : graph.getVertices()) { if (vertex.getID().equals(id)) { return; } } fail("could not find vertex with id " + vertexId + " in JobGraph"); }
Example 4
Source File: JobVertexIDDeserializer.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public JobVertexID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(p.getValueAsString()); }
Example 5
Source File: JobVertexIDKeyDeserializer.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(key); }
Example 6
Source File: JobVertexIdPathParameter.java From Flink-CEPplus with Apache License 2.0 | 4 votes |
@Override protected JobVertexID convertFromString(String value) throws ConversionException { return JobVertexID.fromHexString(value); }
Example 7
Source File: JobVertexIDDeserializer.java From flink with Apache License 2.0 | 4 votes |
@Override public JobVertexID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(p.getValueAsString()); }
Example 8
Source File: JobVertexIDKeyDeserializer.java From flink with Apache License 2.0 | 4 votes |
@Override public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(key); }
Example 9
Source File: JobVertexIdPathParameter.java From flink with Apache License 2.0 | 4 votes |
@Override protected JobVertexID convertFromString(String value) throws ConversionException { return JobVertexID.fromHexString(value); }
Example 10
Source File: JobVertexIDDeserializer.java From flink with Apache License 2.0 | 4 votes |
@Override public JobVertexID deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(p.getValueAsString()); }
Example 11
Source File: JobVertexIDKeyDeserializer.java From flink with Apache License 2.0 | 4 votes |
@Override public Object deserializeKey(String key, DeserializationContext ctxt) throws IOException { return JobVertexID.fromHexString(key); }
Example 12
Source File: JobVertexIdPathParameter.java From flink with Apache License 2.0 | 4 votes |
@Override protected JobVertexID convertFromString(String value) throws ConversionException { return JobVertexID.fromHexString(value); }