private void addToList(final List<SchemaElement> result, parquet.schema.Type field) { field.accept(new TypeVisitor() { @Override public void visit(PrimitiveType primitiveType) {
private void visitChildren(GroupColumnIO newIO, GroupType groupType) { GroupColumnIO oldIO = current; current = newIO; for (Type type : groupType.getFields()) { type.accept(this); } current = oldIO; }
private void visitChildren(GroupColumnIO newIO, GroupType groupType, GroupType requestedGroupType) { GroupColumnIO oldIO = current; current = newIO; for (Type type : groupType.getFields()) { // if the file schema does not contain the field it will just stay null if (requestedGroupType.containsField(type.getName())) { currentRequestedIndex = requestedGroupType.getFieldIndex(type.getName()); currentRequestedType = requestedGroupType.getType(currentRequestedIndex); if (currentRequestedType.getRepetition().isMoreRestrictiveThan(type.getRepetition())) { incompatibleSchema(type, currentRequestedType); } type.accept(this); } } current = oldIO; }