/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.event.avro;
import com.espertech.esper.client.*;
import com.espertech.esper.epl.core.EngineImportService;
import com.espertech.esper.epl.core.SelectExprProcessorRepresentationFactory;
import com.espertech.esper.epl.expression.core.ExprValidationException;
import com.espertech.esper.event.EventAdapterService;
import com.espertech.esper.event.EventBeanManufacturer;
import com.espertech.esper.event.EventTypeMetadata;
import com.espertech.esper.event.WriteablePropertyDescriptor;
import com.espertech.esper.util.TypeWidenerCustomizer;
import java.lang.annotation.Annotation;
import java.util.Map;
import java.util.Set;
public interface EventAdapterAvroHandler {
String HANDLER_IMPL = "com.espertech.esper.avro.core.EventAdapterAvroHandlerImpl";
void init(ConfigurationEngineDefaults.EventMeta.AvroSettings avroSettings, EngineImportService engineImportService);
SelectExprProcessorRepresentationFactory getOutputFactory();
AvroSchemaEventType newEventTypeFromSchema(EventTypeMetadata metadata, String eventTypeName, int typeId, EventAdapterService eventAdapterService, ConfigurationEventTypeAvro requiredConfig, EventType[] superTypes, Set<EventType> deepSuperTypes);
AvroSchemaEventType newEventTypeFromNormalized(EventTypeMetadata metadata, String eventTypeName, int typeId, EventAdapterService eventAdapterService, Map<String, Object> properties, Annotation[] annotations, ConfigurationEventTypeAvro optionalConfig, EventType[] superTypes, Set<EventType> deepSuperTypes, String statementName, String engineURI);
EventBean adapterForTypeAvro(Object avroGenericDataDotRecord, EventType existingType);
EventBeanManufacturer getEventBeanManufacturer(AvroSchemaEventType avroSchemaEventType, EventAdapterService eventAdapterService, WriteablePropertyDescriptor[] properties);
EventBeanFactory getEventBeanFactory(EventType type, EventAdapterService eventAdapterService);
void validateExistingType(EventType existingType, AvroSchemaEventType proposedType);
void avroCompat(EventType existingType, Map<String, Object> selPropertyTypes) throws ExprValidationException;
Object convertEvent(EventBean theEvent, AvroSchemaEventType targetType);
TypeWidenerCustomizer getTypeWidenerCustomizer(EventType eventType);
}