大概的代码类似这样:
List<Integer> list = Arrays.asList(25,256,155);
BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
queryBuilder.must(QueryBuilders.termsQuery("field1","111"));
//查询满足list集合任意一个条件的数据
list.forEach(x->{[......]
大概的代码类似这样:
List<Integer> list = Arrays.asList(25,256,155);
BoolQueryBuilder queryBuilder = QueryBuilders.boolQuery();
queryBuilder.must(QueryBuilders.termsQuery("field1","111"));
//查询满足list集合任意一个条件的数据
list.forEach(x->{[......]
js
var names = ["王五", "李四", "赵六", "张三", "郝七", "陈二", "蔡八", "孙九", "黄十", "路一"];
// 中文姓氏排序
names.sort(function(a, b) {
return a.localeCompare(b,"zh");
});
java
List<String> names = Arrays.asList("王五", "李四", "赵六", "张三", "郝七", "陈二", "蔡八"[......]
如果你不知道怎么获得一个cmyk的img,可以参考 《Java如何将RGB图片转化为CMYK图片》
PDPage page = new PDPage(REC_B5_BLEED);
page.setMediaBox(REC_B5_BLEED);
// img必须是cmyk的
PDImageXObject pdImage = LosslessFactory.createFromImage(document, img);
pdImage.setColorSpace(PDColorSpa[......]
首先声明:
这里讨论的是如何在内存中把rgb转为cmyk
// 假设file是png的,即rgb的
BufferedImage img = ImageIO.read(file);
ColorSpace cpace = new ICC_ColorSpace(
ICC_Profile.getInstance("/home/co[......]