摘要:
一 创建 Alt+Insert 二 生成getter、setter、构造器 Alt+Insert 三 try-cache、if-else等 ctrl+alt+t 四 手动导入 Alt+Enter 五 打开、隐藏工程面板 Alt+1 六 删除一行 Ctrl+x 七 删除一行或多行 Ctrl+y 八 回退 Ctrl+z 九 取消回退 Ctrl+shift+z 十 查找、替换 查找:Ctrl+f 替换... 阅读全文
摘要:
1.scala种的object相当于java中的单例对象,object中定义的全是静态的。main函数在Object中 2.scala每行后可以省略;,如果写在一行,之间必须加; 3.val是常量--不能改变,var是变量--可以改变==类型可以省略不写 4.使用驼峰名命 5.类中的属性默认有get 阅读全文
摘要:
/** * 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 copy... 阅读全文
摘要:
Kafka文档 一、Kafka简介 Kafka是一个分布式的消息队列系统(Message Queue)。 官网:https://kafka.apache.org/ kafka集群有多个Broker服务器组成,每个类型的消息被定义为topic。 同一topic内部的消息按照一定的key和算法被分区(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... 阅读全文
摘要:
/** * 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... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.util.HashMap; import java.util.Map; import java.util.Random; import backtype.storm.task.TopologyContext; import backtype.storm.topology.OutputFields... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.util.Map; import backtype.storm.coordination.BatchOutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.Output... 阅读全文
摘要:
package com.sxt.storm.transactional; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.generated.AlreadyAliveException; im... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.io.Serializable; public class MyMeta implements Serializable{ private static final long serialVersionUID = 1L; private long beginPoint ;//事务开始位置 ... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.math.BigInteger; import java.util.Map; import backtype.storm.coordination.BatchOutputCollector; import backtype.storm.transactional.ITransactionalSp... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.math.BigInteger; import backtype.storm.transactional.ITransactionalSpout; import backtype.storm.utils.Utils; public class MyCoordinator implements ... 阅读全文
摘要:
package com.sxt.storm.transactional; import java.math.BigInteger; import java.util.HashMap; import java.util.Map; import backtype.storm.coordination.BatchOutputCollector; import backtype.storm.task... 阅读全文
摘要:
/** * 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... 阅读全文
摘要:
package com.sxt.storm.grouping; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.Map; import backtype.storm.spout.SpoutOutputCollect... 阅读全文
摘要:
package com.sxt.storm.grouping; import java.util.Map; import backtype.storm.task.OutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.IRichBolt; import backty... 阅读全文
摘要:
package com.sxt.storm.grouping; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.generated.AlreadyAliveException; import ... 阅读全文
摘要:
package com.sxt.storm.drpc; import org.apache.thrift7.TException; import backtype.storm.generated.DRPCExecutionException; import backtype.storm.utils.DRPCClient; public class MyDRPCclient { /**... 阅读全文
摘要:
/** * 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... 阅读全文
摘要:
/** * 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... 阅读全文