本文整理了Java中org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode.elements()
方法的一些代码示例,展示了JsonNode.elements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JsonNode.elements()
方法的具体详情如下:
包路径:org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode
类名称:JsonNode
方法名:elements
暂无
代码示例来源:origin: apache/flink
private static TypeInformation<?>[] convertTypes(String location, JsonNode arrayNode, JsonNode root) {
final TypeInformation<?>[] types = new TypeInformation[arrayNode.size()];
final Iterator<JsonNode> elements = arrayNode.elements();
int i = 0;
while (elements.hasNext()) {
final TypeInformation<?> elementType = convertType(
location + '[' + i + ']',
elements.next(),
root);
types[i] = elementType;
i += 1;
}
return types;
}
}
代码示例来源:origin: apache/flink
final Iterator<JsonNode> elements = typeNode.elements();
while (elements.hasNext()) {
types.add(elements.next().asText());
代码示例来源:origin: apache/flink
JsonNode inputsField = node.get("inputs");
if (inputsField != null) {
Iterator<JsonNode> inputsIter = inputsField.elements();
while (inputsIter.hasNext()) {
JsonNode inputNode = inputsIter.next();
代码示例来源:origin: org.apache.flink/flink-json
private static TypeInformation<?>[] convertTypes(String location, JsonNode arrayNode, JsonNode root) {
final TypeInformation<?>[] types = new TypeInformation[arrayNode.size()];
final Iterator<JsonNode> elements = arrayNode.elements();
int i = 0;
while (elements.hasNext()) {
final TypeInformation<?> elementType = convertType(
location + '[' + i + ']',
elements.next(),
root);
types[i] = elementType;
i += 1;
}
return types;
}
}
代码示例来源:origin: com.alibaba.blink/flink-json
private static TypeInformation<?>[] convertTypes(String location, JsonNode arrayNode, JsonNode root) {
final TypeInformation<?>[] types = new TypeInformation[arrayNode.size()];
final Iterator<JsonNode> elements = arrayNode.elements();
int i = 0;
while (elements.hasNext()) {
final TypeInformation<?> elementType = convertType(
location + '[' + i + ']',
elements.next(),
root);
types[i] = elementType;
i += 1;
}
return types;
}
}
代码示例来源:origin: com.alibaba.blink/flink-json
final Iterator<JsonNode> elements = typeNode.elements();
while (elements.hasNext()) {
types.add(elements.next().asText());
代码示例来源:origin: org.apache.flink/flink-json
final Iterator<JsonNode> elements = typeNode.elements();
while (elements.hasNext()) {
types.add(elements.next().asText());
内容来源于网络,如有侵权,请联系作者删除!