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