pstmt2.setString(2, partition.getPartitionName()); pstmt2.setInt(3, tableId); pstmt2.setString(4, partitionKey.getColumnName()); pstmt2.setString(5, partitionKey.getPartitionValue()); pstmt2.addBatch();
pstmt2.setString(2, partition.getPartitionName()); pstmt2.setInt(3, tableId); pstmt2.setString(4, partitionKey.getColumnName()); pstmt2.setString(5, partitionKey.getPartitionValue()); pstmt2.addBatch();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasColumnName()) { hash = (37 * hash) + COLUMNNAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); } if (hasParentColumnName()) { hash = (37 * hash) + PARENTCOLUMNNAME_FIELD_NUMBER; hash = (53 * hash) + getParentColumnName().hashCode(); } if (hasPartitionValue()) { hash = (37 * hash) + PARTITIONVALUE_FIELD_NUMBER; hash = (53 * hash) + getPartitionValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
pstmt4.setString(2, partition.getPartitionName()); pstmt4.setInt(3, tableId); pstmt4.setString(4, partitionKey.getColumnName()); pstmt4.setString(5, partitionKey.getPartitionValue());
pstmt4.setString(2, partition.getPartitionName()); pstmt4.setInt(3, tableId); pstmt4.setString(4, partitionKey.getColumnName()); pstmt4.setString(5, partitionKey.getPartitionValue());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto other = (org.apache.tajo.catalog.proto.CatalogProtos.PartitionKeyProto) obj; boolean result = true; result = result && (hasColumnName() == other.hasColumnName()); if (hasColumnName()) { result = result && getColumnName() .equals(other.getColumnName()); } result = result && (hasParentColumnName() == other.hasParentColumnName()); if (hasParentColumnName()) { result = result && getParentColumnName() .equals(other.getParentColumnName()); } result = result && (hasPartitionValue() == other.hasPartitionValue()); if (hasPartitionValue()) { result = result && getPartitionValue() .equals(other.getPartitionValue()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
assertEquals(partitions.size(), 1); assertEquals(partitions.get(0).getPartitionName(), "col3=1/col4=2"); assertEquals(partitions.get(0).getPartitionKeysList().get(0).getColumnName(), "col3"); assertEquals(partitions.get(0).getPartitionKeysList().get(0).getPartitionValue(), "1"); assertEquals(partitions.get(0).getPartitionKeysList().get(1).getColumnName(), "col4"); assertEquals(partitions.get(0).getPartitionKeysList().get(1).getPartitionValue(), "2");
/** * <code>required string columnName = 1;</code> */ public Builder clearColumnName() { bitField0_ = (bitField0_ & ~0x00000001); columnName_ = getDefaultInstance().getColumnName(); onChanged(); return this; } /**