Authored by hugufei

添加RecallCommonConstants

package com.yoho.search.recall.scene.constants;
public class RecallCommonConstants {
public static final int MAX_JOIN_BRANDID = 20;
public static final int MAX_JOIN_SORT_PRICE = 10;
public static final int MAX_JOIN_SORT_BRAND= 50;
}
package com.yoho.search.recall.scene.constants;
public class RecallCommonConstants {
public static final int MAX_JOIN_BRANDID = 20;
public static final int MAX_JOIN_SORT_PRICE = 10;
public static final int MAX_JOIN_SORT_BRAND= 50;
}
... ...
package com.yoho.search.recall.scene.models;
import com.yoho.search.core.personalized.models.SortPriceArea;
import java.io.Serializable;
import java.util.List;
/**
* 个性化因子参数
*/
public class PagePersonalFactor implements Serializable{
private static final long serialVersionUID = 89030356435559223L;
private List<Integer> brandIds;
private List<SortPriceArea> sortPriceAreas;
public PagePersonalFactor() {
}
public PagePersonalFactor(List<Integer> brandIds, List<SortPriceArea> sortPriceAreas){
this.brandIds = brandIds;
this.sortPriceAreas = sortPriceAreas;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
public void setSortPriceAreas(List<SortPriceArea> sortPriceAreas) {
this.sortPriceAreas = sortPriceAreas;
}
public List<Integer> getBrandIds() {
return brandIds;
}
public List<SortPriceArea> getSortPriceAreas() {
return sortPriceAreas;
}
}
package com.yoho.search.recall.scene.models.personal;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.core.personalized.models.SortPriceArea;
import java.io.Serializable;
import java.util.List;
/**
* 个性化因子参数
*/
public class PagePersonalFactor implements Serializable{
private static final long serialVersionUID = 89030356435559223L;
private List<Integer> brandIds;
private List<PageSortPriceArea> sortPriceAreas;
private List<PageSortBrand> sortBrands;
public PagePersonalFactor() {
}
public PagePersonalFactor(List<Integer> brandIds, List<PageSortPriceArea> sortPriceAreas,List<PageSortBrand> sortBrands){
this.brandIds = brandIds;
this.sortPriceAreas = sortPriceAreas;
this.sortBrands = sortBrands;
}
public List<Integer> getBrandIds() {
return brandIds;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
public List<PageSortPriceArea> getSortPriceAreas() {
return sortPriceAreas;
}
public void setSortPriceAreas(List<PageSortPriceArea> sortPriceAreas) {
this.sortPriceAreas = sortPriceAreas;
}
public List<PageSortBrand> getSortBrands() {
return sortBrands;
}
public void setSortBrands(List<PageSortBrand> sortBrands) {
this.sortBrands = sortBrands;
}
}
package com.yoho.search.recall.scene.models.personal;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.core.personalized.models.SortPriceArea;
import java.io.Serializable;
import java.util.List;
/**
* 个性化因子参数
*/
public class PagePersonalFactor implements Serializable{
private static final long serialVersionUID = 89030356435559223L;
private List<Integer> brandIds;
private List<PageSortPriceArea> sortPriceAreas;
private List<PageSortBrand> sortBrands;
public PagePersonalFactor() {
}
public PagePersonalFactor(List<Integer> brandIds, List<PageSortPriceArea> sortPriceAreas,List<PageSortBrand> sortBrands){
this.brandIds = brandIds;
this.sortPriceAreas = sortPriceAreas;
this.sortBrands = sortBrands;
}
public List<Integer> getBrandIds() {
return brandIds;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
public List<PageSortPriceArea> getSortPriceAreas() {
return sortPriceAreas;
}
public void setSortPriceAreas(List<PageSortPriceArea> sortPriceAreas) {
this.sortPriceAreas = sortPriceAreas;
}
public List<PageSortBrand> getSortBrands() {
return sortBrands;
}
public void setSortBrands(List<PageSortBrand> sortBrands) {
this.sortBrands = sortBrands;
}
}
... ...
package com.yoho.search.recall.scene.models.personal;
import java.io.Serializable;
import java.util.List;
public class PageSortBrand implements Serializable {
private static final long serialVersionUID = 6155493513881738094L;
private Integer middleSortId;
private List<Integer> brandIds;
public PageSortBrand() {
}
public PageSortBrand(Integer middleSortId, List<Integer> brandIds) {
this.middleSortId = middleSortId;
this.brandIds = brandIds;
}
public Integer getMiddleSortId() {
return middleSortId;
}
public void setMiddleSortId(Integer middleSortId) {
this.middleSortId = middleSortId;
}
public List<Integer> getBrandIds() {
return brandIds;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
}
package com.yoho.search.recall.scene.models.personal;
import java.io.Serializable;
import java.util.List;
public class PageSortBrand implements Serializable {
private static final long serialVersionUID = 6155493513881738094L;
private Integer middleSortId;
private List<Integer> brandIds;
public PageSortBrand() {
}
public PageSortBrand(Integer middleSortId, List<Integer> brandIds) {
this.middleSortId = middleSortId;
this.brandIds = brandIds;
}
public Integer getMiddleSortId() {
return middleSortId;
}
public void setMiddleSortId(Integer middleSortId) {
this.middleSortId = middleSortId;
}
public List<Integer> getBrandIds() {
return brandIds;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
}
... ...
package com.yoho.search.recall.scene.models.personal;
import java.io.Serializable;
import java.util.List;
/**
* 页面中的品类-价格带
*/
public class PageSortPriceArea implements Serializable {
private static final long serialVersionUID = 596977708473811201L;
public PageSortPriceArea() {
}
public PageSortPriceArea(Integer middleSortId, List<Integer> priceAreas) {
this.middleSortId = middleSortId;
this.priceAreas = priceAreas;
}
private Integer middleSortId;
private List<Integer> priceAreas;
public Integer getMiddleSortId() {
return middleSortId;
}
public void setMiddleSortId(Integer middleSortId) {
this.middleSortId = middleSortId;
}
public List<Integer> getPriceAreas() {
return priceAreas;
}
public void setPriceAreas(List<Integer> priceAreas) {
this.priceAreas = priceAreas;
}
}
package com.yoho.search.recall.scene.models.personal;
import java.io.Serializable;
import java.util.List;
/**
* 页面中的品类-价格带
*/
public class PageSortPriceArea implements Serializable {
private static final long serialVersionUID = 596977708473811201L;
public PageSortPriceArea() {
}
public PageSortPriceArea(Integer middleSortId, List<Integer> priceAreas) {
this.middleSortId = middleSortId;
this.priceAreas = priceAreas;
}
private Integer middleSortId;
private List<Integer> priceAreas;
public Integer getMiddleSortId() {
return middleSortId;
}
public void setMiddleSortId(Integer middleSortId) {
this.middleSortId = middleSortId;
}
public List<Integer> getPriceAreas() {
return priceAreas;
}
public void setPriceAreas(List<Integer> priceAreas) {
this.priceAreas = priceAreas;
}
}
... ...