@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 (hasPartition()) { hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@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 (hasPartition()) { hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse)) { return super.equals(obj); } org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse other = (org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse) obj; boolean result = true; result = result && (hasState() == other.hasState()); if (hasState()) { result = result && getState() .equals(other.getState()); } result = result && (hasPartition() == other.hasPartition()); if (hasPartition()) { result = result && getPartition() .equals(other.getPartition()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse)) { return super.equals(obj); } org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse other = (org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse) obj; boolean result = true; result = result && (hasState() == other.hasState()); if (hasState()) { result = result && getState() .equals(other.getState()); } result = result && (hasPartition() == other.hasPartition()); if (hasPartition()) { result = result && getPartition() .equals(other.getPartition()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public final PartitionDescProto getPartition(final String databaseName, final String tableName, final String partitionName) throws UndefinedDatabaseException, UndefinedTableException, UndefinedPartitionException, UndefinedPartitionMethodException { try { final BlockingInterface stub = getStub(); final PartitionIdentifierProto request = PartitionIdentifierProto.newBuilder() .setDatabaseName(databaseName) .setTableName(tableName) .setPartitionName(partitionName) .build(); final GetPartitionDescResponse response = stub.getPartitionByPartitionName(null, request); throwsIfThisError(response.getState(), UndefinedDatabaseException.class); throwsIfThisError(response.getState(), UndefinedTableException.class); throwsIfThisError(response.getState(), UndefinedPartitionMethodException.class); throwsIfThisError(response.getState(), UndefinedPartitionException.class); ensureOk(response.getState()); return response.getPartition(); } catch (ServiceException e) { throw new RuntimeException(e); } }
@Override public final PartitionDescProto getPartition(final String databaseName, final String tableName, final String partitionName) throws UndefinedDatabaseException, UndefinedTableException, UndefinedPartitionException, UndefinedPartitionMethodException { try { final BlockingInterface stub = getStub(); final PartitionIdentifierProto request = PartitionIdentifierProto.newBuilder() .setDatabaseName(databaseName) .setTableName(tableName) .setPartitionName(partitionName) .build(); final GetPartitionDescResponse response = stub.getPartitionByPartitionName(null, request); throwsIfThisError(response.getState(), UndefinedDatabaseException.class); throwsIfThisError(response.getState(), UndefinedTableException.class); throwsIfThisError(response.getState(), UndefinedPartitionMethodException.class); throwsIfThisError(response.getState(), UndefinedPartitionException.class); ensureOk(response.getState()); return response.getPartition(); } catch (ServiceException e) { throw new RuntimeException(e); } }
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; } if (hasPartition()) { if (!getPartition().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; } if (hasPartition()) { if (!getPartition().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse other) { if (other == org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance()) return this; if (other.hasState()) { mergeState(other.getState()); } if (other.hasPartition()) { mergePartition(other.getPartition()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public Builder mergeFrom(org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse other) { if (other == org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance()) return this; if (other.hasState()) { mergeState(other.getState()); } if (other.hasPartition()) { mergePartition(other.getPartition()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }