/** * <code>optional .TableDescProto result_desc = 13;</code> */ public Builder mergeResultDesc(org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto value) { if (resultDescBuilder_ == null) { if (((bitField0_ & 0x00001000) == 0x00001000) && resultDesc_ != org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.getDefaultInstance()) { resultDesc_ = org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.newBuilder(resultDesc_).mergeFrom(value).buildPartial(); } else { resultDesc_ = value; } onChanged(); } else { resultDescBuilder_.mergeFrom(value); } bitField0_ |= 0x00001000; return this; } /**
final String[] splitted = IdentifierUtil.splitTableName(table.getTableName()); if (splitted.length == 1) { throw new TajoInternalError( "createTable() requires a qualified table name, but it is '" + table.getTableName() + "'"); pstmt.setInt(1, dbid); pstmt.setString(2, tableName); if (table.getIsExternal()) { pstmt.setString(3, TableType.EXTERNAL.name()); } else { pstmt.setString(3, TableType.MANAGED.name()); pstmt.setString(4, table.getPath()); pstmt.setString(5, table.getMeta().getDataFormat()); pstmt.setBoolean(6, table.getSchema() == null); pstmt.executeUpdate(); pstmt.close(); throw new TajoInternalError("There is no TID matched to '" + table.getTableName() + '"'); for (int i = 0; i < table.getSchema().getFieldsCount(); i++) { ColumnProto col = table.getSchema().getFields(i); org.apache.tajo.type.Type type = TypeProtobufEncoder.decode(col.getType()); if (table.getMeta().hasParams()) { String propSQL = "INSERT INTO " + TB_OPTIONS + "(TID, KEY_, VALUE_) VALUES(?, ?, ?)"; for (KeyValueProto entry : table.getMeta().getParams().getKeyvalList()) { pstmt.setInt(1, tableId);
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } if (hasTableDesc()) { hash = (37 * hash) + TABLEDESC_FIELD_NUMBER; hash = (53 * hash) + getTableDesc().hashCode(); } if (hasTajoUserName()) { hash = (37 * hash) + TAJOUSERNAME_FIELD_NUMBER; hash = (53 * hash) + getTajoUserName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = tableDesc_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = tableDesc_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = resultDesc_.toBuilder();
String[] splitted = CatalogUtil.splitTableName(table.getTableName()); if (splitted.length == 1) { throw new TajoInternalError( "createTable() requires a qualified table name, but it is '" + table.getTableName() + "'"); pstmt.setInt(1, dbid); pstmt.setString(2, tableName); if (table.getIsExternal()) { pstmt.setString(3, TableType.EXTERNAL.name()); } else { pstmt.setString(3, TableType.MANAGED.name()); pstmt.setString(4, table.getPath()); pstmt.setString(5, table.getMeta().getDataFormat()); pstmt.setBoolean(6, table.getSchema() == null); pstmt.executeUpdate(); pstmt.close(); throw new TajoInternalError("There is no TID matched to '" + table.getTableName() + '"'); for (int i = 0; i < table.getSchema().getFieldsCount(); i++) { ColumnProto col = table.getSchema().getFields(i); TajoDataTypes.DataType dataType = col.getDataType(); if (table.getMeta().hasParams()) { String propSQL = "INSERT INTO " + TB_OPTIONS + "(TID, KEY_, VALUE_) VALUES(?, ?, ?)"; for (KeyValueProto entry : table.getMeta().getParams().getKeyvalList()) { pstmt.setInt(1, tableId);
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = resultDesc_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = resultDesc_.toBuilder();
org.apache.tajo.catalog.proto.CatalogProtos.TableDescProto.Builder subBuilder = null; if (((bitField0_ & 0x00001000) == 0x00001000)) { subBuilder = resultDesc_.toBuilder();
tableBuilder = CatalogProtos.TableDescProto.newBuilder();
tableBuilder = CatalogProtos.TableDescProto.newBuilder();
TableDescProto tableDesc = getTable(request.getDatabaseName(), request.getTableName()); pair = getSelectStatementAndPartitionFilterSet(tableDesc.getTableName(), tableDesc.getPartition() .getExpressionSchema().getFieldsList(), request.getAlgebra());
if (hasResultDesc()) { result = result && getResultDesc() .equals(other.getResultDesc());
if (hasResultDesc()) { result = result && getResultDesc() .equals(other.getResultDesc());
CatalogProtos.TableDescProto tableDescProto = CatalogProtos.TableDescProto.newBuilder() .setTableName(nodeUniqName) .setMeta(CatalogProtos.TableProto.newBuilder().setDataFormat(BuiltinStorages.TEXT).build())
CatalogProtos.TableDescProto tableDescProto = CatalogProtos.TableDescProto.newBuilder() .setTableName(nodeUniqName) .setMeta(CatalogProtos.TableProto.newBuilder().setDataFormat(BuiltinStorages.TEXT).build())
hash = (53 * hash) + getResultDesc().hashCode();
if (hasTableDesc()) { result = result && getTableDesc() .equals(other.getTableDesc());
hash = (53 * hash) + getResultDesc().hashCode();