use of org.apache.apex.malhar.lib.appdata.schemas.SchemaRegistrySingle in project apex-malhar by apache.
the class AbstractAppDataSnapshotServer method setup.
@SuppressWarnings("unchecked")
@Override
public void setup(OperatorContext context) {
super.setup(context);
setupSchema();
schemaRegistry = new SchemaRegistrySingle(schema);
// Setup for query processing
setupQueryProcessor();
queryDeserializerFactory = new MessageDeserializerFactory(SchemaQuery.class, DataQuerySnapshot.class);
queryDeserializerFactory.setContext(DataQuerySnapshot.class, schemaRegistry);
resultSerializerFactory = new MessageSerializerFactory(resultFormatter);
queryProcessor.setup(context);
}
Aggregations