Abstract all row event processing
The code that handles the Avro files is now fully abstracted behind the AvroConverter class that implements the RowEventHandler interface. The code still has some avro specific behavior in a few places (parsing of JSON files into TableCreate objects). This can be replaced, if needed, by querying the master server for the CREATE TABLE statements.
This commit is contained in:
@ -3,7 +3,8 @@ if(AVRO_FOUND AND JANSSON_FOUND)
|
||||
include_directories(${JANSSON_INCLUDE_DIR})
|
||||
|
||||
# The common avrorouter functionality
|
||||
add_library(avro-common SHARED avro.cc ../binlogrouter/binlog_common.cc avro_client.cc avro_schema.cc avro_rbr.cc avro_file.cc avro_index.cc)
|
||||
add_library(avro-common SHARED avro.cc ../binlogrouter/binlog_common.cc avro_client.cc
|
||||
avro_schema.cc avro_rbr.cc avro_file.cc avro_index.cc avro_converter.cc)
|
||||
set_target_properties(avro-common PROPERTIES VERSION "1.0.0")
|
||||
set_target_properties(avro-common PROPERTIES LINK_FLAGS -Wl,-z,defs)
|
||||
target_link_libraries(avro-common maxscale-common ${JANSSON_LIBRARIES} ${AVRO_LIBRARIES} maxavro lzma)
|
||||
|
||||
Reference in New Issue
Block a user