pstmt.setInt(1, tableId); pstmt.setString(2, table.getPartition().getPartitionType().name()); pstmt.setString(3, table.getPartition().getExpression()); pstmt.setBytes(4, table.getPartition().getExpressionSchema().toByteArray()); pstmt.executeUpdate();
pstmt.setInt(1, tableId); pstmt.setString(2, table.getPartition().getPartitionType().name()); pstmt.setString(3, table.getPartition().getExpression()); pstmt.setBytes(4, table.getPartition().getExpressionSchema().toByteArray()); pstmt.executeUpdate();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasTableIdentifier()) { hash = (37 * hash) + TABLEIDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getTableIdentifier().hashCode(); } if (hasPartitionType()) { hash = (37 * hash) + PARTITIONTYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getPartitionType()); } if (hasExpression()) { hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getExpression().hashCode(); } if (hasExpressionSchema()) { hash = (37 * hash) + EXPRESSIONSCHEMA_FIELD_NUMBER; hash = (53 * hash) + getExpressionSchema().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
result = result && getExpression() .equals(other.getExpression());
public PartitionMethodDesc(CatalogProtos.PartitionMethodProto proto) { this(proto.getTableIdentifier().getDatabaseName(), proto.getTableIdentifier().getTableName(), proto.getPartitionType(), proto.getExpression(), SchemaFactory.newV1(proto.getExpressionSchema())); }
public PartitionMethodDesc(CatalogProtos.PartitionMethodProto proto) { this(proto.getTableIdentifier().getDatabaseName(), proto.getTableIdentifier().getTableName(), proto.getPartitionType(), proto.getExpression(), new Schema(proto.getExpressionSchema())); }
/** * <code>required string expression = 3;</code> */ public Builder clearExpression() { bitField0_ = (bitField0_ & ~0x00000004); expression_ = getDefaultInstance().getExpression(); onChanged(); return this; } /**