org.apache.nifi.serialization.record.Record.getAsInt()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(0.9k)|赞(0)|评价(0)|浏览(177)

本文整理了Java中org.apache.nifi.serialization.record.Record.getAsInt方法的一些代码示例,展示了Record.getAsInt的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getAsInt方法的具体详情如下:
包路径:org.apache.nifi.serialization.record.Record
类名称:Record
方法名:getAsInt

Record.getAsInt介绍

暂无

代码示例

代码示例来源:origin: apache/nifi

break;
case INT8:
  row.addByte(colIdx, record.getAsInt(colName).byteValue());
  break;
case INT16:
  row.addShort(colIdx, record.getAsInt(colName).shortValue());
  break;
case INT32:
  row.addInt(colIdx, record.getAsInt(colName));
  break;
case INT64:

代码示例来源:origin: apache/nifi

Integer bIntValue = record.getAsInt(fieldName);
  val = bIntValue == null ? null : bIntValue.byteValue();
  break;
case SHORT:
  Integer sIntValue = record.getAsInt(fieldName);
  val = sIntValue == null ? null : sIntValue.shortValue();
  break;
case INT:
  val = record.getAsInt(fieldName);
  break;
case LONG:

代码示例来源:origin: apache/nifi

break;
case INT:
  retVal = clientService.toBytes(record.getAsInt(field));
  break;
case LONG:

相关文章