typeBuilder.setKind(OrcProto.Type.Kind.STRUCT).addSubtypes(1) .addSubtypes(2).addSubtypes(3).addSubtypes(4).addSubtypes(5) .addSubtypes(6); typeBuilder.addAllFieldNames(Lists.newArrayList("operation", "originalTransaction", "bucket", "rowId", "currentTransaction", "row")); types.add(null); typeBuilder.clearSubtypes(); typeBuilder.addSubtypes(7); typeBuilder.addAllFieldNames(Lists.newArrayList("col1")); types.add(typeBuilder.build());
types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.STRUCT). addFieldNames("time").addFieldNames("union").addFieldNames("decimal"). addSubtypes(1).addSubtypes(2).addSubtypes(5).build()); types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.TIMESTAMP). build()); types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.UNION). addSubtypes(3).addSubtypes(4).build()); types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.INT). build());
types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.STRUCT). addFieldNames("time").addFieldNames("date"). addSubtypes(1).addSubtypes(2).build()); types.add(OrcProto.Type.newBuilder().setKind(OrcProto.Type.Kind.TIMESTAMP). build());
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(++subtype); result.add(type.build()); needsAdd = false; appendOrcTypesRebuildSubtypes(result, children.get(1)); type.setKind(OrcProto.Type.Kind.MAP); type.addSubtypes(subtype + 1); type.addSubtypes(subtype2); result.set(subtype, type.build()); needsAdd = false; type.addSubtypes(fieldSubtypes.get(i)); type.addFieldNames(fieldNames.get(i)); type.addSubtypes(unionSubtypes.get(i));
case LIST: builder.setKind(OrcProto.Type.Kind.LIST); builder.addSubtypes(++subtype); result.add(builder.build()); needsAdd = false; columnId = appendOrcTypesRebuildSubtypes(result, types, columnId); builder.setKind(OrcProto.Type.Kind.MAP); builder.addSubtypes(subtype + 1); builder.addSubtypes(subtype2); result.set(subtype, builder.build()); needsAdd = false; builder.addSubtypes(fieldSubtypes.get(i)); builder.addFieldNames(fieldNames.get(i)); builder.addSubtypes(unionSubtypes.get(i));
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(children.get(0).getId()); break; case MAP: type.setKind(OrcProto.Type.Kind.MAP); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.STRUCT); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.UNION); for(TypeDescription t: children) { type.addSubtypes(t.getId());
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(children.get(0).getId()); break; case MAP: type.setKind(OrcProto.Type.Kind.MAP); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.STRUCT); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.UNION); for(TypeDescription t: children) { type.addSubtypes(t.getId());
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(children.get(0).getId()); break; case MAP: type.setKind(OrcProto.Type.Kind.MAP); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.STRUCT); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.UNION); for(TypeDescription t: children) { type.addSubtypes(t.getId());
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(children.get(0).getId()); break; case MAP: type.setKind(OrcProto.Type.Kind.MAP); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.STRUCT); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.UNION); for(TypeDescription t: children) { type.addSubtypes(t.getId());
case LIST: type.setKind(OrcProto.Type.Kind.LIST); type.addSubtypes(children.get(0).getId()); break; case MAP: type.setKind(OrcProto.Type.Kind.MAP); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.STRUCT); for(TypeDescription t: children) { type.addSubtypes(t.getId()); type.setKind(OrcProto.Type.Kind.UNION); for(TypeDescription t: children) { type.addSubtypes(t.getId());
.setKind(OrcProto.Type.Kind.STRUCT) .addFieldNames("col1") .addSubtypes(1)); footer.addTypes(OrcProto.Type.newBuilder() .setKind(OrcProto.Type.Kind.STRING));