/** * Internal utility method to add the primitive class to the shared converters and factory adapters to be reused by * all components. */ private static <DatumT> void registerSharedPrimitiveClass(Class<DatumT> primitiveClass, Schema schema) { mapSharedConverter.put(primitiveClass, new Unconverted<>(primitiveClass, schema)); mapSharedIndexedRecordConverter.put(primitiveClass, new LambdaSingleColumnIndexedRecordConverterSupplier<>(primitiveClass, schema)); }
/** * Internal utility method to add the primitive class to the shared converters and {@link IndexedRecordConverter} to * be reused by all components. */ private static <DatumT> void registerSharedPrimitiveClass(Class<DatumT> primitiveClass, AvroConverter<DatumT, ?> converter) { mapSharedConverter.put(primitiveClass, converter); mapSharedIndexedRecordConverter.put(primitiveClass, new LambdaSingleColumnIndexedRecordConverterSupplier<>(primitiveClass, converter.getSchema())); }