std::string opCodeToFunctionName()

in csrc/velox/column.cpp [458:505]


std::string opCodeToFunctionName(BinaryOpCode opCode) {
  switch (opCode) {
    case BinaryOpCode::Plus: {
      return "plus";
    } break;
    case BinaryOpCode::Minus: {
      return "minus";
    } break;
    case BinaryOpCode::Multiply: {
      return "multiply";
    } break;
    case BinaryOpCode::Modulus: {
      return "mod";
    } break;
    case BinaryOpCode::Eq: {
      return "eq";
    } break;
    case BinaryOpCode::Neq: {
      return "neq";
    } break;
    case BinaryOpCode::Lt: {
      return "lt";
    } break;
    case BinaryOpCode::Gt: {
      return "gt";
    } break;
    case BinaryOpCode::Lte: {
      return "lte";
    } break;
    case BinaryOpCode::Gte: {
      return "gte";
    } break;
    case BinaryOpCode::BitwiseAnd: {
      return "bitwise_and";
    } break;
    case BinaryOpCode::BitwiseOr: {
      return "bitwise_or";
    } break;
    case BinaryOpCode::BitwiseXor: {
      return "bitwise_xor";
    } break;
    default: {
      throw std::logic_error(
          "Unsupported BinaryOpCode: " +
          std::to_string(static_cast<int16_t>(opCode)));
    } break;
  }
}