在生产环境使用加密服务

List<Host>hosts=new ArrayList(){{ add(host1);}};String config="{"+"[LOGGER];logsw=debug,error;logPath=./;[HOST 1];hsmModel=GHSM;host=192.168.XX.XX;linkNum=-3;port=8019;timeout=5;};GHSMAPI api=GHSMAPI....

防盗链

try { List<String>refererList=new ArrayList();添加Referer白名单。Referer参数支持通配符星号(*)和问号?refererList.add("http://www.aliyun.com");refererList.add("http://www.*.com");refererList.add(...

Spark访问Table Store

List<PrimaryKeyColumn>lower=new ArrayList();List<PrimaryKeyColumn>upper=new ArrayList();lower.add(new PrimaryKeyColumn("name",PrimaryKeyValue.INF_MIN));upper.add(new PrimaryKeyColumn("name",PrimaryKeyValue.INF_MAX));res....

文档搜索 Demo

设置最大返回数/添加Aggregate对象参数,支持设置一个或多个统计字段示例 aggregateClauses.add(agg);haQuery.setAggregate(aggregateClauses);设置聚合打散子句 ArrayList<HaQueryDistinctClause>DistinctClauses=new ArrayList();...

解析红线异常问题排查参考文档

Optional.ofNullable(params).orElse(new ArrayList()).forEach(str->{ Matcher matcher=STAT_PATTERN.matcher(str);if(matcher.find()){ String fieldName=matcher.group(1).toLowerCase();String key=matcher.group(2);String value=...

进度页

List<FlowResult>flows=new ArrayList();flows.add(new FlowResult(ResultConstant.RESULT_STATUS_ENUM_OK,ResultStatusIcon.OK,"支付成功",Arrays.asList("辅助说明文本","辅助说明文本")));flows.add(new FlowResult(ResultConstant....

表操作

List<AttributeIndexSchema>indexSchemas=new ArrayList();indexSchemas.add(new AttributeIndexSchema("owner",AttributeIndexSchema.Type.KEYWORD).setIsArray(true));indexSchemas.add(new AttributeIndexSchema("number",...

身份管理

RAM用户相关操作 RAM用户管理 AK安全方案 RAM用户SSO管理 RAM用户 当您的阿里云账号下有多个RAM用户时,可以通过创建用户对职责相同的RAM用户进行分组管理和批量授权,实现高效地管理RAM用户及其权限。对于RAM用户的使用,建议您:在...

环境接口

List<InetSocketAddress>socketAddressArrayList=new ArrayList();InetSocketAddress inetSocketAddress1=InetSocketAddress.createUnresolved(host1,port1);InetSocketAddress inetSocketAddress2=InetSocketAddress.createUnresolved...

镜像回源

List<RoutingRule>routingRules=new ArrayList();RoutingRule rule=new RoutingRule();rule.setNumber(1);只有匹配此前缀的Object才能匹配此规则。rule.getCondition().setKeyPrefixEquals("examplebucket");访问指定Object时,返回status ...

事件接口

add contract List<String>topics=new ArrayList();系统合约,任意调用一个合约都会返回事件 topics.add("call_contract");EVM 合约,调用会触发合约内部 TEST 事件的方法 topics.add("TEST(identity,uint256,uint256)");listen topics ...

java_lang_OutOfMemoryError

代码示例/在循环外初始化大对象list并在循环内重复使用,并清空集合类、置null List list=new ArrayList();for(Object tmp:otherList){/to do something } list.clear();list=null;参考文献 ...

社交/收银台结果页弹窗

String title,List<String>list)/*设置列表选项点击事件监听*/public void setOnItemClickListener(OnItemClickListener listener)/*动态数据刷新接口*@param list*/public void updateData(ArrayList<PopMenuItem>list)/*获取 imageView*@...

面积图

使用说明 面积图 支持单面积图和多面积图,单面积图中仅包含一条折线,多面积图中包含多条折线和图例。图表绑定的数据源支持固定数据源及动态数据源。数据源类型需为List,Structure为结构对象类型。List中的每个数据对应着面积图...

在云助手命令中使用OOS参数仓库

List<String>instanceIdList=new ArrayList();设置运行云助手命令的实例ID。instanceIdList.add("i-bp1dktddjsg7oh11*");request.setInstanceIds(instanceIdList);设置云助手命令支持自定义参数。request.setEnableParameter(true);try { ...

分库分表(Alias功能)

} } private List<String>findCollection(String aliasName,long start,long end){ List<String>collections=new ArrayList();if(start>end){ return collections;}/基于[start,end]寻找合适的collection if(clusterStateProvider.getState...

Android 小程序 API 权限扩展配置

} private List<PermissionConfig>permissionConfigs=new ArrayList();public TinyExternalPermissionCheckProvider(){ permissionConfigs.add(create("saveFile","file","%s想使用您的文件存储"));permissionConfigs.add(create(...

分库分表(Alias功能)

} } private List<String>findCollection(String aliasName,long start,long end){ List<String>collections=new ArrayList();if(start>end){ return collections;}/基于[start,end]寻找合适的collection if(clusterStateProvider.getState...

导入商品库

准备参数*/List<BatchInsertItemsRequest.ItemInfo>itemInfos=new ArrayList();商品对象*/BatchInsertItemsRequest.ItemInfo itemInfo=new BatchInsertItemsRequest.ItemInfo();商品条形码 itemInfo.setItemBarCode("");商品Id 只支持数字 ...

步骤二:实验1-根据车次查询城市信息

Object>mRep=eBody.getValue()/取出城市列表信息,类型为ArrayList ArrayList listCities=mRep.get('result').get('list')/将城市信息做为集成接口的返回内容,构造成Entity类型,交由引擎处理 Entity e=Entity.fromObjectValue(listCities...

文本向量调用参考

import java.util.ArrayList;import java.util.List;public class TextEmbeddingTest { public void testCreateTextEmbeddings(){ String accessKeyId=System.getenv("ACCESS_KEY_ID");String accessKeySecret=System.getenv("ACCESS_KEY_...

Java SDK 快速开始

添加 Task 依赖:split->count->merge*/List<String>taskNameTargets=new ArrayList();taskNameTargets.add("merge");taskDag.addDependencies("count",taskNameTargets);List<String>taskNameTargets2=new ArrayList();taskNameTargets2....

事件上报接口规范

Quick Audience空间支持的用户ID,必填 clientEventMessageModel.setCustomerIdList(new ArrayList(){{ this.add(new CustomerIdModel("188*5531","MOBILE"));}});request.setEventMessageModelListJson(JSON.toJSONString(Arrays.asList...

账户接口

返回字段 返回字段 字段类型 说明 result CreateAccountResponse 创建账户的响应 CreateAccountResponse,具体参数见下表。参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int ...

账户接口

返回字段 返回字段 字段类型 说明 result CreateAccountResponse 创建账户的响应 CreateAccountResponse,具体参数见下表。参数 类型 说明 transactionReceipt TransactionReceipt 交易收据 blockNumber BigInteger 区块号 txIndex int ...

SDK多值获取最新数据

List<String>fields=new ArrayList();fields.add("direction");Map,String>tags=new HashMap,String>();tags.put("sensor","95D8-7913");LastPointQuery lastPointQuery=LastPointQuery.builder().sub(LastPointSubQuery.builder(metric,...

OSS里的文件怎么全部解冻?

List<String>filePaths=new ArrayList();filePaths.add("filePath1");filePaths.add("filePath2");创建OSSClient实例。OSS ossClient=new OSSClientBuilder().build(endpoint,credentialsProvider);try { for(String filePath:filePaths){ ...

更新Doc

判断更新Doc是否成功 assert response.isSuccess()批量更新Doc Java/通过UpdateDocRequest对象,批量更新10条Doc List<Doc>docs=new ArrayList();for(int i=0;i;i+){ docs.add(Doc.builder().id(Integer.toString(i+3)).vector(Vector....

三方模型应用

import java.util.ArrayList;import java.util.Arrays;import java.util.Collections;import java.util.List;public class ApplicationClientTest {/*三方模型应用示例*/public void testThirdModelCompletions(){ String accessKeyId=...

管理目录

if(objectListing.getObjectSummaries().size()>0){ List<String>keys=new ArrayList();for(OSSObjectSummary s:objectListing.getObjectSummaries()){ System.out.println("key name:"+s.getKey());keys.add(s.getKey());} ...

自定义应用事件

} public void putEventsSample(){ List<CloudEvent>cloudEventList=new ArrayList();cloudEventList.add(EventBuilder.builder().withId("9e9b433c-a89b-4918-896b-7e1b7221*").withSource(URI.create("crmabc.newsletter")).withType(...

使用UDAF实现数据排序和聚合

Traverse the sorted list,extract the required fields,and join them into a string*/List<String>ret=new ArrayList();Iterator<String>strlist=asc.list.iterator();while(strlist.hasNext()){ ret.add(strlist.next().split("#")[0]);...

事件接口

add contract List<String>topics=new ArrayList();系统合约,任意调用一个合约都会返回事件 topics.add("call_contract");EVM 合约,调用会触发合约内部 TEST 事件的方法 topics.add("TEST(identity,uint256,uint256)");listen topics ...

删除时间线元数据

private static void deleteTimeseriesMeta(TimeseriesClient client){ List<TimeseriesKey>timeseriesKeyList=new ArrayList();for(int i=0;i;i+){ Map,String>tags=new HashMap,String>();tags.put("region","hangzhou");tags.put("os",...

环境接口

List<InetSocketAddress>socketAddressArrayList=new ArrayList();InetSocketAddress inetSocketAddress1=InetSocketAddress.createUnresolved(host1,port1);InetSocketAddress inetSocketAddress2=InetSocketAddress.createUnresolved...

消费托管MQ接口

ackMQMessageRequest.setMqAckRequests(new ArrayList(response.getResult().size()));for(MQMessage msg:response.getResult()){ MQAckRequest ackRequest=new MQAckRequest();ackRequest.setReceipt_handle(msg.getReceipt_handle());...

java_lang_UnsupportedOperationException

List<String>newList=new ArrayList();for(String tmp:list){ if(tmp.contains(key)){ newList.add(tmp);} } System.out.println(newList.toString());} 参考文献 ...

自定义总线事件分析

} public void putEventsSample(){ List<CloudEvent>cloudEventList=new ArrayList();CloudEvent cloudEvent=EventBuilder.builder().withId("a5074581-7e74-4e4c-868f-47e7afdf*").withSource(URI.create("acs.oss")).withType("oss:...

静态网站托管(镜像回源)

List<RoutingRule>routingRules=new ArrayList();RoutingRule rule=new RoutingRule();rule.setNumber(1);只有匹配此前缀的Object才能匹配此规则。rule.getCondition().setKeyPrefixEquals("examplebucket");访问指定Object时,返回status ...

插入Doc

判断插入Doc是否成功 assert response.isSuccess()批量插入Doc Java/通过InsertDocRequest对象,批量插入10条Doc List<Doc>docs=new ArrayList();for(int i=0;i;i+){ docs.add(Doc.builder().id(Integer.toString(i+3)).vector(Vector....
共有200条 < 1 2 3 4 ... 200 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
全局事务服务 (文档停止维护) 资源管理 云联络中心 云数据库 RDS 访问控制 弹性公网IP
新人特惠 爆款特惠 最新活动 免费试用