tensorflow_io/core/kernels/avro/utils/avro_parser_tree.cc
// Need to use user user_name here to place begin/finish marks properly
Need to use user user_name here to place begin/finish marks properly
Need to use user user_name here to place begin / finish marks properly
Status AvroParserTree::CreateFinalValueParser(AvroParserUniquePtr& value_parser,
                                              const string& user_name,
                                              DataType data_type) const {
  switch (data_type) {
    case DT_BOOL:
      value_parser.reset(new BoolValueParser(user_name));
      break;
    case DT_INT32:
      value_parser.reset(new IntValueParser(user_name));
      break;
    case DT_INT64:
      value_parser.reset(new LongValueParser(user_name));
      break;
    case DT_FLOAT:
      value_parser.reset(new FloatValueParser(user_name));
      break;
    case DT_DOUBLE:
      value_parser.reset(new DoubleValueParser(user_name));
      break;
    case DT_STRING:
      value_parser.reset(new StringBytesEnumFixedValueParser(user_name));
      break;
    default:
      return errors::Unimplemented(
          "Unable to build avro value parser for name '", user_name,
          "', because data type '", DataTypeString(data_type),
          "' is not supported!");
  }
  return Status::OK();
}
Status AvroParserTree :: CreateFinalValueParser ( AvroParserUniquePtr & value_parser , const string & user_name , DataType data_type ) const { switch ( data_type ) { case DT_BOOL : value_parser . reset ( new BoolValueParser ( user_name ) ) ; break ; case DT_INT32 : value_parser . reset ( new IntValueParser ( user_name ) ) ; break ; case DT_INT64 : value_parser . reset ( new LongValueParser ( user_name ) ) ; break ; case DT_FLOAT : value_parser . reset ( new FloatValueParser ( user_name ) ) ; break ; case DT_DOUBLE : value_parser . reset ( new DoubleValueParser ( user_name ) ) ; break ; case DT_STRING : value_parser . reset ( new StringBytesEnumFixedValueParser ( user_name ) ) ; break ; default : return errors :: Unimplemented ( " " , user_name , " " , DataTypeString ( data_type ) , " " ) ; } return Status :: OK ( ) ; }
Need to use user user_name here to place begin/finish marks properly
Need to use user user_name here to place begin / finish marks properly