list.add(tableProperties); boolean present_bucketingInfo = true && (isSetBucketingInfo()); list.add(present_bucketingInfo); if (present_bucketingInfo)
if (isSetBucketingInfo()) { if (!first) sb.append(", "); sb.append("bucketingInfo:");
lastComparison = Boolean.valueOf(isSetBucketingInfo()).compareTo(other.isSetBucketingInfo()); if (lastComparison != 0) { return lastComparison; if (isSetBucketingInfo()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bucketingInfo, other.bucketingInfo); if (lastComparison != 0) {
if (struct.isSetBucketingInfo()) { oprot.writeFieldBegin(BUCKETING_INFO_FIELD_DESC); struct.bucketingInfo.write(oprot);
/** 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 TABLE_ID: return isSetTable_id(); case TABLE_COLUMNS: return isSetTable_columns(); case SCHEMA_EVOLUTION: return isSetSchema_evolution(); case TABLE_PROPERTIES: return isSetTableProperties(); case BUCKETING_INFO: return isSetBucketingInfo(); case PARTITION_INFO: return isSetPartitionInfo(); case LONG_STRING_COLUMNS: return isSetLong_string_columns(); } throw new IllegalStateException(); }
this.tableProperties = __this__tableProperties; if (other.isSetBucketingInfo()) { this.bucketingInfo = new BucketingInfo(other.bucketingInfo);
optionals.set(0); if (struct.isSetBucketingInfo()) { optionals.set(1); if (struct.isSetBucketingInfo()) { struct.bucketingInfo.write(oprot);
boolean this_present_bucketingInfo = true && this.isSetBucketingInfo(); boolean that_present_bucketingInfo = true && that.isSetBucketingInfo(); if (this_present_bucketingInfo || that_present_bucketingInfo) { if (!(this_present_bucketingInfo && that_present_bucketingInfo))
@Override public TableSchema fromExternalToWrapperTableSchema( org.apache.carbondata.format.TableSchema externalTableSchema, String tableName) { TableSchema wrapperTableSchema = new TableSchema(); wrapperTableSchema.setTableId(externalTableSchema.getTable_id()); wrapperTableSchema.setTableName(tableName); wrapperTableSchema.setTableProperties(externalTableSchema.getTableProperties()); List<ColumnSchema> listOfColumns = new ArrayList<ColumnSchema>(); for (org.apache.carbondata.format.ColumnSchema externalColumnSchema : externalTableSchema .getTable_columns()) { listOfColumns.add(fromExternalToWrapperColumnSchema(externalColumnSchema)); } if (null != externalTableSchema.tableProperties) { CarbonUtil .setLocalDictColumnsToWrapperSchema(listOfColumns, externalTableSchema.tableProperties, externalTableSchema.tableProperties .get(CarbonCommonConstants.LOCAL_DICTIONARY_ENABLE)); } wrapperTableSchema.setListOfColumns(listOfColumns); wrapperTableSchema.setSchemaEvolution( fromExternalToWrapperSchemaEvolution(externalTableSchema.getSchema_evolution())); if (externalTableSchema.isSetBucketingInfo()) { wrapperTableSchema.setBucketingInfo( fromExternalToWrapperBucketingInfo(externalTableSchema.bucketingInfo)); } if (externalTableSchema.getPartitionInfo() != null) { wrapperTableSchema.setPartitionInfo( fromExternalToWrapperPartitionInfo(externalTableSchema.getPartitionInfo())); } return wrapperTableSchema; }