本文整理了Java中org.apache.parquet.schema.Types.map()
方法的一些代码示例,展示了Types.map()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Types.map()
方法的具体详情如下:
包路径:org.apache.parquet.schema.Types
类名称:Types
方法名:map
暂无
代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-column
public static MapBuilder<GroupType> requiredMap() {
return map(Type.Repetition.REQUIRED);
}
代码示例来源:origin: org.apache.parquet/parquet-column
public static MapBuilder<GroupType> requiredMap() {
return map(Type.Repetition.REQUIRED);
}
代码示例来源:origin: org.apache.parquet/parquet-column
public static MapBuilder<GroupType> optionalMap() {
return map(Type.Repetition.OPTIONAL);
}
代码示例来源:origin: org.lasersonlab.apache.parquet/parquet-column
public static MapBuilder<GroupType> optionalMap() {
return map(Type.Repetition.OPTIONAL);
}
代码示例来源:origin: Netflix/iceberg
public GroupType map(MapType map, Type.Repetition repetition, int id, String name) {
NestedField keyField = map.fields().get(0);
NestedField valueField = map.fields().get(1);
return Types.map(repetition)
.key(field(keyField))
.value(field(valueField))
.id(id)
.named(name);
}
代码示例来源:origin: Netflix/iceberg
@Override
public Type map(GroupType map, Type key, Type value) {
GroupType repeated = map.getType(0).asGroupType();
Type originalKey = repeated.getType(0);
Type originalValue = repeated.getType(1);
int keyId = getId(originalKey);
int valueId = getId(originalValue);
if (selectedIds.contains(keyId) || selectedIds.contains(valueId)) {
return map;
} else if (value != null) {
if (value != originalValue) {
return Types.map(map.getRepetition())
.key(originalKey)
.value(value)
.id(getId(map))
.named(map.getName());
}
return map;
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!