既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上大数据知识点,真正体系化!
由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新
}
});
patternStream.print();
env.execute("CEP on Temperature Sensor");
}
}
### 三、Alert
package cep;
public class Alert {
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public Alert(String message) {
this.message = message;
}
@Override
public String toString() {
return "Alert [message=" + message + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime \* result + ((message == null) ? 0 : message.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if(this == obj) return true;
if(obj == null) return false;
if(getClass() != obj.getClass()) return false;
Alert other = (Alert) obj;
if(message == null) {
if(other.message != null) {
return false;
}else if(!message.equals(other.message)) {
return false;
}
}
return true;
}
}
### 四、MonitoringEvent
package cep;
public abstract class MonitoringEvent {
private String machineName;
public String getMachineName() {
return machineName;
}
public void setMachineName(String machineName) {
this.machineName = machineName;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime \* result + ((machineName == null) ? 0 : machineName.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if(this == obj) return true;
if(obj == null) return false;
if(getClass() != obj.getClass()) return false;
MonitoringEvent other = (MonitoringEvent) obj;
if(machineName == null) {
if(other.machineName != null) {
return false;
}else if(!machineName.equals(other.machineName)) {
return false;
}
}
return true;
}
public MonitoringEvent(String machineName) {
super();
this.machineName = machineName;
}
}
### 五、TemperatureEvent
package cep;
public class TemperatureEvent extends MonitoringEvent{
public TemperatureEvent(String machineName) {
super(machineName);
}
private double temperature;
public double getTemperature() {
return temperature;
}
public void setTemperature(double temperature) {
this.temperature = temperature;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
long temp;
temp = Double.doubleToLongBits(temperature);
result = (int) (prime \* result +(temp ^ (temp >>> 32)));
return result;
}
@Override
public boolean equals(Object obj) {
if(this == obj) return true;
if(!super.equals(obj)) return false;
if(getClass() != obj.getClass()) return false;
TemperatureEvent other = (TemperatureEvent) obj;
if(Double.doubleToLongBits(temperature) != Double.doubleToLongBits(other.temperature)) return false;
return true;
}
@Override
网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!
做到真正的技术提升。**
一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!