@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSignature()) { hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); } if (hasFunctionType()) { hash = (37 * hash) + FUNCTIONTYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getFunctionType()); } if (getParameterTypesCount() > 0) { hash = (37 * hash) + PARAMETERTYPES_FIELD_NUMBER; hash = (53 * hash) + getParameterTypesList().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.proto.CatalogProtos.ContainFunctionRequest)) { return super.equals(obj); } org.apache.tajo.catalog.proto.CatalogProtos.ContainFunctionRequest other = (org.apache.tajo.catalog.proto.CatalogProtos.ContainFunctionRequest) obj; boolean result = true; result = result && (hasSignature() == other.hasSignature()); if (hasSignature()) { result = result && getSignature() .equals(other.getSignature()); } result = result && (hasFunctionType() == other.hasFunctionType()); if (hasFunctionType()) { result = result && (getFunctionType() == other.getFunctionType()); } result = result && getParameterTypesList() .equals(other.getParameterTypesList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public ReturnState containFunction(RpcController controller, ContainFunctionRequest request) { try { boolean returnValue; if (request.hasFunctionType()) { returnValue = containFunction(request.getSignature(), request.getFunctionType(), request.getParameterTypesList()); } else { returnValue = containFunction(request.getSignature(), request.getParameterTypesList()); } return returnValue ? OK : errUndefinedFunction(buildSimpleFunctionSignature(request.getSignature(), request.getParameterTypesList())); } catch (Throwable t) { printStackTraceIfError(LOG, t); return returnError(t); } } }
@Override public ReturnState containFunction(RpcController controller, ContainFunctionRequest request) { try { boolean returnValue; if (request.hasFunctionType()) { returnValue = containFunction(request.getSignature(), request.getFunctionType(), request.getParameterTypesList()); } else { returnValue = containFunction(request.getSignature(), request.getParameterTypesList()); } return returnValue ? OK : errUndefinedFunction(buildSimpleFunctionSignature(request.getSignature(), request.getParameterTypesList())); } catch (Throwable t) { printStackTraceIfError(LOG, t); return returnError(t); } } }
public static FunctionSignature create(ContainFunctionRequest proto) { return new FunctionSignature(proto.getSignature(), proto.getFunctionType(), proto.getParameterTypesList()); }
public static FunctionSignature create(ContainFunctionRequest proto) { return new FunctionSignature(proto.getSignature(), proto.getFunctionType(), proto.getParameterTypesList()); }
/** * <code>required string signature = 1;</code> */ public Builder clearSignature() { bitField0_ = (bitField0_ & ~0x00000001); signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } /**