org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode.binaryValue()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(175)

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

JsonNode.binaryValue介绍

暂无

代码示例

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

private Object convertByteArray(JsonNode node) {
    try {
      return node.binaryValue();
    } catch (IOException e) {
      throw new RuntimeException("Unable to deserialize byte array.", e);
    }
  }
}

代码示例来源:origin: org.apache.flink/flink-json

private Object convertByteArray(JsonNode node) {
    try {
      return node.binaryValue();
    } catch (IOException e) {
      throw new RuntimeException("Unable to deserialize byte array.", e);
    }
  }
}

代码示例来源:origin: com.alibaba.blink/flink-json

private Object convertByteArray(JsonNode node) {
    try {
      return node.binaryValue();
    } catch (IOException e) {
      throw new RuntimeException("Unable to deserialize byte array.", e);
    }
  }
}

代码示例来源:origin: com.alibaba.blink/flink-runtime

@Override
public SerializedThrowable deserialize(
    final JsonParser p,
    final DeserializationContext ctxt) throws IOException {
  final JsonNode root = p.readValueAsTree();
  final byte[] serializedException = root.get(FIELD_NAME_SERIALIZED_THROWABLE).binaryValue();
  try {
    return InstantiationUtil.deserializeObject(serializedException, ClassLoader.getSystemClassLoader());
  } catch (ClassNotFoundException e) {
    throw new IOException("Failed to deserialize " + SerializedThrowable.class.getCanonicalName(), e);
  }
}

代码示例来源:origin: org.apache.flink/flink-runtime_2.11

@Override
public SerializedThrowable deserialize(
    final JsonParser p,
    final DeserializationContext ctxt) throws IOException {
  final JsonNode root = p.readValueAsTree();
  final byte[] serializedException = root.get(FIELD_NAME_SERIALIZED_THROWABLE).binaryValue();
  try {
    return InstantiationUtil.deserializeObject(serializedException, ClassLoader.getSystemClassLoader());
  } catch (ClassNotFoundException e) {
    throw new IOException("Failed to deserialize " + SerializedThrowable.class.getCanonicalName(), e);
  }
}

代码示例来源:origin: org.apache.flink/flink-runtime

@Override
public SerializedThrowable deserialize(
    final JsonParser p,
    final DeserializationContext ctxt) throws IOException {
  final JsonNode root = p.readValueAsTree();
  final byte[] serializedException = root.get(FIELD_NAME_SERIALIZED_THROWABLE).binaryValue();
  try {
    return InstantiationUtil.deserializeObject(serializedException, ClassLoader.getSystemClassLoader());
  } catch (ClassNotFoundException e) {
    throw new IOException("Failed to deserialize " + SerializedThrowable.class.getCanonicalName(), e);
  }
}

相关文章