hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasDbId()) { hash = (37 * hash) + DBID_FIELD_NUMBER; hash = (53 * hash) + getDbId(); if (hasTid()) { hash = (37 * hash) + TID_FIELD_NUMBER; hash = (53 * hash) + getTid(); if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasTableType()) { hash = (37 * hash) + TABLETYPE_FIELD_NUMBER; hash = (53 * hash) + getTableType().hashCode(); if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); if (hasDataFormat()) { hash = (37 * hash) + DATAFORMAT_FIELD_NUMBER; hash = (53 * hash) + getDataFormat().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash;
/** * <code>repeated .TableDescriptorProto table = 2;</code> */ public org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.Builder addTableBuilder( int index) { return getTableFieldBuilder().addBuilder( index, org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance()); } /**
resultSet = stmt.executeQuery(sql); while (resultSet.next()) { TableDescriptorProto.Builder builder = TableDescriptorProto.newBuilder();
result = result && (hasDbId() == other.hasDbId()); if (hasDbId()) { result = result && (getDbId() == other.getDbId()); result = result && (hasTid() == other.hasTid()); if (hasTid()) { result = result && (getTid() == other.getTid()); result = result && (hasName() == other.hasName()); if (hasName()) { result = result && getName() .equals(other.getName()); result = result && (hasTableType() == other.hasTableType()); if (hasTableType()) { result = result && getTableType() .equals(other.getTableType()); result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); result = result && (hasDataFormat() == other.hasDataFormat()); if (hasDataFormat()) { result = result && getDataFormat() .equals(other.getDataFormat());
ResultSet resultSet = stmt.executeQuery(sql)) { while (resultSet.next()) { TableDescriptorProto.Builder builder = TableDescriptorProto.newBuilder();
public Builder mergeFrom(org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto other) { if (other == org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance()) return this; if (other.hasDbId()) { setDbId(other.getDbId()); if (other.hasTid()) { setTid(other.getTid()); if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); if (other.hasTableType()) { bitField0_ |= 0x00000008; tableType_ = other.tableType_; onChanged(); if (other.hasPath()) { bitField0_ |= 0x00000010; path_ = other.path_; onChanged(); if (other.hasDataFormat()) { bitField0_ |= 0x00000020; dataFormat_ = other.dataFormat_; onChanged(); this.mergeUnknownFields(other.getUnknownFields()); return this;
Column column = columns.get(fieldId); if ("tid".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createInt4(table.getTid())); } else if ("db_id".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createInt4(table.getDbId())); } else if ("table_name".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createText(table.getName())); } else if ("table_type".equalsIgnoreCase(column.getSimpleName())) { if (table.hasTableType()) { aTuple.put(fieldId, DatumFactory.createText(table.getTableType())); } else { aTuple.put(fieldId, DatumFactory.createNullDatum()); aTuple.put(fieldId, DatumFactory.createText(table.getPath())); } else if ("data_format".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createText(table.getDataFormat()));
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasState()) { memoizedIsInitialized = 0; return false; } if (!getState().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getTableCount(); i++) { if (!getTable(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasState()) { memoizedIsInitialized = 0; return false; } if (!getState().isInitialized()) { memoizedIsInitialized = 0; return false; } for (int i = 0; i < getTableCount(); i++) { if (!getTable(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
Column column = columns.get(fieldId); if ("tid".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createInt4(table.getTid())); } else if ("db_id".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createInt4(table.getDbId())); } else if ("table_name".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createText(table.getName())); } else if ("table_type".equalsIgnoreCase(column.getSimpleName())) { if (table.hasTableType()) { aTuple.put(fieldId, DatumFactory.createText(table.getTableType())); } else { aTuple.put(fieldId, DatumFactory.createNullDatum()); aTuple.put(fieldId, DatumFactory.createText(table.getPath())); } else if ("data_format".equalsIgnoreCase(column.getSimpleName())) { aTuple.put(fieldId, DatumFactory.createText(table.getDataFormat()));
public Builder toBuilder() { return newBuilder(this); }
public final boolean isInitialized() { if (!hasState()) { return false; } if (!getState().isInitialized()) { return false; } for (int i = 0; i < getTableCount(); i++) { if (!getTable(i).isInitialized()) { return false; } } return true; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto prototype) {
public org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto getDefaultInstanceForType() { return org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance(); }
public final boolean isInitialized() { if (!hasState()) { return false; } if (!getState().isInitialized()) { return false; } for (int i = 0; i < getTableCount(); i++) { if (!getTable(i).isInitialized()) { return false; } } return true; }
public static Builder newBuilder(org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
/** * <code>repeated .TableDescriptorProto table = 2;</code> */ public org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.Builder addTableBuilder() { return getTableFieldBuilder().addBuilder( org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance()); } /**
/** * <code>optional string tableType = 4;</code> */ public Builder clearTableType() { bitField0_ = (bitField0_ & ~0x00000008); tableType_ = getDefaultInstance().getTableType(); onChanged(); return this; } /**
/** * <code>repeated .TableDescriptorProto table = 2;</code> */ public org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.Builder addTableBuilder( int index) { return getTableFieldBuilder().addBuilder( index, org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance()); } /**
/** * <code>repeated .TableDescriptorProto table = 2;</code> */ public org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.Builder addTableBuilder() { return getTableFieldBuilder().addBuilder( org.apache.tajo.catalog.proto.CatalogProtos.TableDescriptorProto.getDefaultInstance()); } /**