Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #128 from radibnia77/apache-migration
Apache migration
  • Loading branch information
xun-hu-at-futurewei-com committed Feb 27, 2021
2 parents f4aa169 + f288599 commit c6670ca7df68063968e8af4c93cdfefac87a8a74
Show file tree
Hide file tree
Showing 256 changed files with 4,384 additions and 3,400 deletions.
@@ -1,4 +1,11 @@
IMService/gradlew
IMService/gradlew.bat
IMService/gradle/wrapper/gradle-wrapper.jar
IMService/gradle/wrapper/gradle-wrapper.properties
IMService/gradle/wrapper/gradle-wrapper.properties
Processes/performance-forecasting/pf-service/gradlew
**/.idea/**
**/.gradle/**
**/build/**
Processes/performance-forecasting/pf-service/gradle/wrapper/gradle-wrapper.jar
Processes/performance-forecasting/pf-service/gradle/wrapper/gradle-wrapper.properties

@@ -1,22 +1,19 @@
/**
* Copyright 2019, Futurewei Technologies
* <p>
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.bluemarlin.ims.imsservice.controller;
@@ -1,22 +1,19 @@
/**
* Copyright 2019, Futurewei Technologies
*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0.html
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.bluemarlin.ims.imsservice.dao;
@@ -116,8 +113,8 @@
BoolQueryBuilder createAndQueryForMultiValuePlusAgeGender(List<TargetingChannel> tcs);

/**
* This method returns a query to retrieve data sets that match age and gender attributes of
* every targeting channel of a collection.
* This method returns a query to retrieve data sets that match age and gender attributes of
* every targeting channel of a collection.
*
* @param tcs
* @return
@@ -1,22 +1,19 @@
/**
* Copyright 2019, Futurewei Technologies
*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0.html
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.bluemarlin.ims.imsservice.dao;
@@ -116,6 +113,7 @@ public void setESClient(ESClient esclient)

/**
* This method returns the base query (only single-value attributes) for a targeting channel.
*
* @param targetingChannel
* @return
*/
@@ -137,8 +135,8 @@ private BoolQueryBuilder createBaseQueryForSingleValues(TargetingChannel targeti
* This method adds an attribute with its possible values to a query as Must operand.
*
* @param boolQueryBuilder : query that new attribute appends to
* @param list : list of values
* @param field : attribute name
* @param list : list of values
* @param field : attribute name
*/
protected void append(BoolQueryBuilder boolQueryBuilder, List<String> list, String field)
{
@@ -160,7 +158,7 @@ protected void append(BoolQueryBuilder boolQueryBuilder, String key, Object valu

/**
* This method adds an attribute with its possible values to a query as Must or notMust operand.
*
* <p>
* If the values are in List then the operand is Must.