use of com.datatorrent.stram.webapp.TypeGraph.TypeGraphSerializer in project apex-core by apache.
the class TypeGraphFactory method createTypeGraphProtoType.
public static TypeGraph createTypeGraphProtoType() {
Input input = null;
try {
input = new Input(new ByteArrayInputStream(preComputeGraph));
Kryo kryo = new Kryo();
TypeGraphSerializer tgs = new TypeGraphSerializer();
kryo.register(TypeGraph.class, tgs);
return kryo.readObject(input, TypeGraph.class);
} finally {
IOUtils.closeQuietly(input);
}
}
Aggregations