public org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse buildPartial() { org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse result = new org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (stateBuilder_ == null) { result.state_ = state_; } else { result.state_ = stateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (partitionBuilder_ == null) { result.partition_ = partition_; } else { result.partition_ = partitionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse getPartitionByPartitionName( com.google.protobuf.RpcController controller, org.apache.tajo.catalog.proto.CatalogProtos.PartitionIdentifierProto request) throws com.google.protobuf.ServiceException { return (org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse) channel.callBlockingMethod( getDescriptor().getMethods().get(25), controller, request, org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance()); }
@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; }
return org.apache.tajo.rpc.protocolrecords.PrimitiveProtos.ReturnState.getDefaultInstance(); case 26: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance(); case 27: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionsResponse.getDefaultInstance();
return org.apache.tajo.rpc.protocolrecords.PrimitiveProtos.ReturnState.getDefaultInstance(); case 25: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance(); case 26: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionsResponse.getDefaultInstance();
return org.apache.tajo.rpc.protocolrecords.PrimitiveProtos.ReturnState.getDefaultInstance(); case 26: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance(); case 27: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionsResponse.getDefaultInstance();
return org.apache.tajo.rpc.protocolrecords.PrimitiveProtos.ReturnState.getDefaultInstance(); case 25: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse.getDefaultInstance(); case 26: return org.apache.tajo.catalog.CatalogProtocol.GetPartitionsResponse.getDefaultInstance();
return GetPartitionDescResponse.newBuilder().setState(errUndefinedPartitionMethod(tbName)).build(); return GetPartitionDescResponse.newBuilder().setState(returnError(t)).build(); return GetPartitionDescResponse.newBuilder().setState(errUndefinedPartitionMethod(tbName)).build(); return GetPartitionDescResponse.newBuilder() .setState(OK) .setPartition(partitionDesc) .build(); } else { return GetPartitionDescResponse.newBuilder() .setState(errUndefinedPartition(partitionName)) .build(); printStackTraceIfError(LOG, t); return GetPartitionDescResponse.newBuilder() .setState(returnError(t)) .build();
return GetPartitionDescResponse.newBuilder().setState(errUndefinedPartitionMethod(tbName)).build(); return GetPartitionDescResponse.newBuilder().setState(returnError(t)).build(); return GetPartitionDescResponse.newBuilder().setState(errUndefinedPartitionMethod(tbName)).build(); return GetPartitionDescResponse.newBuilder() .setState(OK) .setPartition(partitionDesc) .build(); } else { return GetPartitionDescResponse.newBuilder() .setState(errUndefinedPartition(partitionName)) .build(); printStackTraceIfError(LOG, t); return GetPartitionDescResponse.newBuilder() .setState(returnError(t)) .build();
@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 org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse buildPartial() { org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse result = new org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (stateBuilder_ == null) { result.state_ = state_; } else { result.state_ = stateBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (partitionBuilder_ == null) { result.partition_ = partition_; } else { result.partition_ = partitionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); 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); } }
@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; }
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; }
@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; }
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, state_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, partition_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.tajo.catalog.CatalogProtocol.GetPartitionDescResponse prototype) {
public Builder toBuilder() { return newBuilder(this); }