摘要:
一 创建 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 替换... 阅读全文
posted @ 2018-07-06 20:20
uuhh
阅读(77)
评论(0)
推荐(0)
摘要:
1.scala种的object相当于java中的单例对象,object中定义的全是静态的。main函数在Object中 2.scala每行后可以省略;,如果写在一行,之间必须加; 3.val是常量--不能改变,var是变量--可以改变==类型可以省略不写 4.使用驼峰名命 5.类中的属性默认有get 阅读全文
posted @ 2018-07-06 14:06
uuhh
阅读(576)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 12:58
uuhh
阅读(98)
评论(0)
推荐(0)
摘要:
Kafka文档 一、Kafka简介 Kafka是一个分布式的消息队列系统(Message Queue)。 官网:https://kafka.apache.org/ kafka集群有多个Broker服务器组成,每个类型的消息被定义为topic。 同一topic内部的消息按照一定的key和算法被分区(p 阅读全文
posted @ 2018-07-06 11:02
uuhh
阅读(386)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 11:01
uuhh
阅读(88)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 10:22
uuhh
阅读(231)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2018-07-06 10:21
uuhh
阅读(209)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.transactional; import java.util.Map; import backtype.storm.coordination.BatchOutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.Output... 阅读全文
posted @ 2018-07-06 10:20
uuhh
阅读(70)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.transactional; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.generated.AlreadyAliveException; im... 阅读全文
posted @ 2018-07-06 10:19
uuhh
阅读(107)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.transactional; import java.io.Serializable; public class MyMeta implements Serializable{ private static final long serialVersionUID = 1L; private long beginPoint ;//事务开始位置 ... 阅读全文
posted @ 2018-07-06 10:18
uuhh
阅读(103)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.transactional; import java.math.BigInteger; import java.util.Map; import backtype.storm.coordination.BatchOutputCollector; import backtype.storm.transactional.ITransactionalSp... 阅读全文
posted @ 2018-07-06 10:17
uuhh
阅读(88)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.transactional; import java.math.BigInteger; import backtype.storm.transactional.ITransactionalSpout; import backtype.storm.utils.Utils; public class MyCoordinator implements ... 阅读全文
posted @ 2018-07-06 10:16
uuhh
阅读(79)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2018-07-06 10:15
uuhh
阅读(81)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 10:14
uuhh
阅读(145)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2018-07-06 10:13
uuhh
阅读(81)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2018-07-06 10:12
uuhh
阅读(90)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.grouping; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.generated.AlreadyAliveException; import ... 阅读全文
posted @ 2018-07-06 10:11
uuhh
阅读(208)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.drpc; import org.apache.thrift7.TException; import backtype.storm.generated.DRPCExecutionException; import backtype.storm.utils.DRPCClient; public class MyDRPCclient { /**... 阅读全文
posted @ 2018-07-06 10:09
uuhh
阅读(84)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 10:09
uuhh
阅读(112)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 10:08
uuhh
阅读(210)
评论(0)
推荐(0)
摘要:
/** * 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... 阅读全文
posted @ 2018-07-06 10:07
uuhh
阅读(106)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.ack; import java.util.Map; import backtype.storm.task.OutputCollector; import backtype.storm.task.TopologyContext; import backtype.storm.topology.IRichBolt; import backtype.st... 阅读全文
posted @ 2018-07-06 10:06
uuhh
阅读(89)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.ack; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.Map; import backtype.storm.spout.SpoutOutputCollector; ... 阅读全文
posted @ 2018-07-06 10:06
uuhh
阅读(70)
评论(0)
推荐(0)
摘要:
package com.sxt.storm.ack; import backtype.storm.Config; import backtype.storm.LocalCluster; import backtype.storm.StormSubmitter; import backtype.storm.generated.AlreadyAliveException; import back... 阅读全文
posted @ 2018-07-06 10:05
uuhh
阅读(115)
评论(0)
推荐(0)

浙公网安备 33010602011771号