public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
result = result && getParametersList() .equals(other.getParametersList()); result = result && getMapReduceConfigFile() .equals(other.getMapReduceConfigFile()); result = result && getMapReduceHdfsBaseDir() .equals(other.getMapReduceHdfsBaseDir()); result = result && getMapReduceHdfsHostPort() .equals(other.getMapReduceHdfsHostPort()); result = result && getMapReduceJobtrackerHostPort() .equals(other.getMapReduceJobtrackerHostPort()); result = result && getMapReduceYarnResourceManager() .equals(other.getMapReduceYarnResourceManager()); result = result && getCommonDistanceFunctionClass() .equals(other.getCommonDistanceFunctionClass()); result = result && getAuthorizationsList() .equals(other.getAuthorizationsList()); result = result && getTypeNamesList() .equals(other.getTypeNamesList()); result = result && getIndexName() .equals(other.getIndexName()); result = result && getExtractMaxInputSplit() .equals(other.getExtractMaxInputSplit()); result = result && getExtractMinInputSplit() .equals(other.getExtractMinInputSplit()); result = result && getExtractQuery() .equals(other.getExtractQuery()); result = result && getOutputOutputFormat() .equals(other.getOutputOutputFormat()); result = result && getInputFormatClass()
/** * <code>string clusteringMinimumSize = 22;</code> */ public Builder clearClusteringMinimumSize() { clusteringMinimumSize_ = getDefaultInstance().getClusteringMinimumSize(); onChanged(); return this; } /**
/** * <code>string clusteringMaxIterations = 21;</code> */ public Builder clearClusteringMaxIterations() { clusteringMaxIterations_ = getDefaultInstance().getClusteringMaxIterations(); onChanged(); return this; } /**
dataSize += computeStringSizeNoTag(parameters_.getRaw(i)); size += 1 * getParametersList().size(); if (!getMapReduceConfigFileBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mapReduceConfigFile_); if (!getMapReduceHdfsBaseDirBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mapReduceHdfsBaseDir_); if (!getMapReduceHdfsHostPortBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mapReduceHdfsHostPort_); if (!getMapReduceJobtrackerHostPortBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mapReduceJobtrackerHostPort_); if (!getMapReduceYarnResourceManagerBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, mapReduceYarnResourceManager_); if (!getCommonDistanceFunctionClassBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, commonDistanceFunctionClass_); dataSize += computeStringSizeNoTag(authorizations_.getRaw(i)); size += 1 * getAuthorizationsList().size(); dataSize += computeStringSizeNoTag(typeNames_.getRaw(i)); size += 1 * getTypeNamesList().size();
public org.locationtech.geowave.service.grpc.protobuf.DBScanCommandParametersProtos buildPartial() { org.locationtech.geowave.service.grpc.protobuf.DBScanCommandParametersProtos result = new org.locationtech.geowave.service.grpc.protobuf.DBScanCommandParametersProtos(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_;
@Override public void dBScanCommand( DBScanCommandParametersProtos request, StreamObserver<VoidResponseProtos> responseObserver) { DBScanCommand cmd = new DBScanCommand(); Map<FieldDescriptor, Object> m = request.getAllFields(); GeoWaveGrpcServiceCommandUtil.setGrpcToCommandFields(m, cmd); final File configFile = GeoWaveGrpcServiceOptions.geowaveConfigFile; final OperationParams params = new ManualOperationParams(); params.getContext().put(ConfigOptions.PROPERTIES_FILE_CONTEXT, configFile); cmd.prepare(params); LOGGER.info("Executing DBScanCommand..."); try { cmd.computeResults(params); VoidResponseProtos resp = VoidResponseProtos.newBuilder().build(); responseObserver.onNext(resp); responseObserver.onCompleted(); } catch (final Exception e) { LOGGER.error("Exception encountered executing command", e); } }
if (!getMapReduceConfigFileBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mapReduceConfigFile_); if (!getMapReduceHdfsBaseDirBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mapReduceHdfsBaseDir_); if (!getMapReduceHdfsHostPortBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mapReduceHdfsHostPort_); if (!getMapReduceJobtrackerHostPortBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mapReduceJobtrackerHostPort_); if (!getMapReduceYarnResourceManagerBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, mapReduceYarnResourceManager_); if (!getCommonDistanceFunctionClassBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, commonDistanceFunctionClass_); if (!getIndexNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, indexName_); if (!getExtractMaxInputSplitBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, extractMaxInputSplit_); if (!getExtractMinInputSplitBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, extractMinInputSplit_); if (!getExtractQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, extractQuery_);
hash = (19 * hash) + getDescriptor().hashCode(); if (getParametersCount() > 0) { hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getParametersList().hashCode(); hash = (53 * hash) + getMapReduceConfigFile().hashCode(); hash = (37 * hash) + MAPREDUCEHDFSBASEDIR_FIELD_NUMBER; hash = (53 * hash) + getMapReduceHdfsBaseDir().hashCode(); hash = (37 * hash) + MAPREDUCEHDFSHOSTPORT_FIELD_NUMBER; hash = (53 * hash) + getMapReduceHdfsHostPort().hashCode(); hash = (37 * hash) + MAPREDUCEJOBTRACKERHOSTPORT_FIELD_NUMBER; hash = (53 * hash) + getMapReduceJobtrackerHostPort().hashCode(); hash = (37 * hash) + MAPREDUCEYARNRESOURCEMANAGER_FIELD_NUMBER; hash = (53 * hash) + getMapReduceYarnResourceManager().hashCode(); hash = (37 * hash) + COMMONDISTANCEFUNCTIONCLASS_FIELD_NUMBER; hash = (53 * hash) + getCommonDistanceFunctionClass().hashCode(); if (getAuthorizationsCount() > 0) { hash = (37 * hash) + AUTHORIZATIONS_FIELD_NUMBER; hash = (53 * hash) + getAuthorizationsList().hashCode(); if (getTypeNamesCount() > 0) { hash = (37 * hash) + TYPENAMES_FIELD_NUMBER; hash = (53 * hash) + getTypeNamesList().hashCode(); hash = (53 * hash) + getIndexName().hashCode(); hash = (37 * hash) + EXTRACTMAXINPUTSPLIT_FIELD_NUMBER; hash = (53 * hash) + getExtractMaxInputSplit().hashCode(); hash = (37 * hash) + EXTRACTMININPUTSPLIT_FIELD_NUMBER; hash = (53 * hash) + getExtractMinInputSplit().hashCode();
public boolean dbScanCommand() { final ArrayList<String> types = new ArrayList<>(); types.add(GeoWaveGrpcTestUtils.typeName); final DBScanCommandParametersProtos request = DBScanCommandParametersProtos.newBuilder().addParameters( GeoWaveGrpcTestUtils.storeName).setClusteringMaxIterations( "5").setClusteringMinimumSize("10").setExtractMinInputSplit( "2").setExtractMaxInputSplit("6").setPartitionMaxDistance( "1000").setOutputReducerCount("4").setMapReduceHdfsHostPort( GeoWaveGrpcTestUtils.getMapReduceTestEnv().getHdfs()).setMapReduceJobtrackerHostPort( GeoWaveGrpcTestUtils.getMapReduceTestEnv().getJobtracker()).setMapReduceHdfsBaseDir( GeoWaveGrpcTestUtils.getMapReduceTestEnv().getHdfsBaseDirectory()).addAllTypeNames( types).build(); analyticMapreduceBlockingStub.dBScanCommand(request); return true; }
public Builder mergeFrom(org.locationtech.geowave.service.grpc.protobuf.DBScanCommandParametersProtos other) { if (other == org.locationtech.geowave.service.grpc.protobuf.DBScanCommandParametersProtos.getDefaultInstance()) return this; if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { if (!other.getMapReduceConfigFile().isEmpty()) { mapReduceConfigFile_ = other.mapReduceConfigFile_; onChanged(); if (!other.getMapReduceHdfsBaseDir().isEmpty()) { mapReduceHdfsBaseDir_ = other.mapReduceHdfsBaseDir_; onChanged(); if (!other.getMapReduceHdfsHostPort().isEmpty()) { mapReduceHdfsHostPort_ = other.mapReduceHdfsHostPort_; onChanged(); if (!other.getMapReduceJobtrackerHostPort().isEmpty()) { mapReduceJobtrackerHostPort_ = other.mapReduceJobtrackerHostPort_; onChanged(); if (!other.getMapReduceYarnResourceManager().isEmpty()) { mapReduceYarnResourceManager_ = other.mapReduceYarnResourceManager_; onChanged(); if (!other.getCommonDistanceFunctionClass().isEmpty()) { commonDistanceFunctionClass_ = other.commonDistanceFunctionClass_; onChanged(); if (!other.getIndexName().isEmpty()) {