MessageType fromParquetSchema(List<SchemaElement> schema, List<ColumnOrder> columnOrders) { Iterator<SchemaElement> iterator = schema.iterator(); SchemaElement root = iterator.next(); Types.MessageTypeBuilder builder = Types.buildMessage(); if (root.isSetField_id()) { builder.id(root.field_id); } buildChildren(builder, iterator, root.getNum_children(), columnOrders, 0); return builder.named(root.name); }
MessageType fromParquetSchema(List<SchemaElement> schema, List<ColumnOrder> columnOrders) { Iterator<SchemaElement> iterator = schema.iterator(); SchemaElement root = iterator.next(); Types.MessageTypeBuilder builder = Types.buildMessage(); if (root.isSetField_id()) { builder.id(root.field_id); } buildChildren(builder, iterator, root.getNum_children(), columnOrders, 0); return builder.named(root.name); }
first = false; if (isSetField_id()) { if (!first) sb.append(", "); sb.append("field_id:");
first = false; if (isSetField_id()) { if (!first) sb.append(", "); sb.append("field_id:");
list.add(precision); boolean present_field_id = true && (isSetField_id()); list.add(present_field_id); if (present_field_id)
lastComparison = Boolean.valueOf(isSetField_id()).compareTo(other.isSetField_id()); if (lastComparison != 0) { return lastComparison; if (isSetField_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field_id, other.field_id); if (lastComparison != 0) {
lastComparison = java.lang.Boolean.valueOf(isSetField_id()).compareTo(other.isSetField_id()); if (lastComparison != 0) { return lastComparison; if (isSetField_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.field_id, other.field_id); if (lastComparison != 0) {
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case TYPE_LENGTH: return isSetType_length(); case REPETITION_TYPE: return isSetRepetition_type(); case NAME: return isSetName(); case NUM_CHILDREN: return isSetNum_children(); case CONVERTED_TYPE: return isSetConverted_type(); case SCALE: return isSetScale(); case PRECISION: return isSetPrecision(); case FIELD_ID: return isSetField_id(); case LOGICAL_TYPE: return isSetLogicalType(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new java.lang.IllegalArgumentException(); } switch (field) { case TYPE: return isSetType(); case TYPE_LENGTH: return isSetType_length(); case REPETITION_TYPE: return isSetRepetition_type(); case NAME: return isSetName(); case NUM_CHILDREN: return isSetNum_children(); case CONVERTED_TYPE: return isSetConverted_type(); case SCALE: return isSetScale(); case PRECISION: return isSetPrecision(); case FIELD_ID: return isSetField_id(); case LOGICAL_TYPE: return isSetLogicalType(); } throw new java.lang.IllegalStateException(); }
optionals.set(6); if (struct.isSetField_id()) { optionals.set(7); oprot.writeI32(struct.precision); if (struct.isSetField_id()) { oprot.writeI32(struct.field_id);
optionals.set(6); if (struct.isSetField_id()) { optionals.set(7); oprot.writeI32(struct.precision); if (struct.isSetField_id()) { oprot.writeI32(struct.field_id);
hashCode = hashCode * 8191 + precision; hashCode = hashCode * 8191 + ((isSetField_id()) ? 131071 : 524287); if (isSetField_id()) hashCode = hashCode * 8191 + field_id;
typeBuilder.as(getOriginalType(element.converted_type)); if (element.isSetField_id()) { typeBuilder.id(element.field_id);
typeBuilder.as(getOriginalType(element.converted_type)); if (element.isSetField_id()) { typeBuilder.id(element.field_id);
childBuilder.as(getOriginalType(schemaElement.converted_type)); if (schemaElement.isSetField_id()) { childBuilder.id(schemaElement.field_id);
boolean this_present_field_id = true && this.isSetField_id(); boolean that_present_field_id = true && that.isSetField_id(); if (this_present_field_id || that_present_field_id) { if (!(this_present_field_id && that_present_field_id))
boolean this_present_field_id = true && this.isSetField_id(); boolean that_present_field_id = true && that.isSetField_id(); if (this_present_field_id || that_present_field_id) { if (!(this_present_field_id && that_present_field_id))
if (schemaElement.isSetField_id()) { childBuilder.id(schemaElement.field_id);
oprot.writeFieldEnd(); if (struct.isSetField_id()) { oprot.writeFieldBegin(FIELD_ID_FIELD_DESC); oprot.writeI32(struct.field_id);
oprot.writeFieldEnd(); if (struct.isSetField_id()) { oprot.writeFieldBegin(FIELD_ID_FIELD_DESC); oprot.writeI32(struct.field_id);