Interface Schema.Field.FieldConfigurable

All Known Implementing Classes:
AvroFieldSerialization, TupleFieldSerialization
Enclosing class:

public static interface Schema.Field.FieldConfigurable

Interface that allows to receive ITuple field's metadata. Used to allow stateful custom serialization for fields.

Method Summary
 void setFieldProperties(Map<String,String> readProps, Map<String,String> targetProps)
          Sets the properties for this field.

Method Detail


void setFieldProperties(Map<String,String> readProps,
                        Map<String,String> targetProps)
Sets the properties for this field.

Properties may come from configuration for serializing or may have been read from a data source when deserializing. As Fields may implement custom Serializers / Deserializers, backwards compatibility might be preserved by each implementation. For that, we provide both properties read from deserializing and properties specified by the user as "target" for this Field. Below we specify the exact meaning of each parameter:

readProps - Properties of this field, present when reading (deserializing).
targetProps - Properties of this field, specified for serializing. If readProps is also present, targetProps are to be taken as an updated configuration for this field. In this way backwards compatibility can be managed by each Serializer / Deserializer.

Copyright © –2014 Datasalt Systems S.L.. All rights reserved.