private volatile long lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
@Override
public DataIter parseLine(String line) throws InvalidEntryException {
try {
ClickLog p4ppvlog = com.taobao.loganalyzer.input.click.parser.ClickLogParser.parse(line);
if (p4ppvlog == null) {
return null;
}
if((p4ppvlog.getRefPID()==null&&p4ppvlog.getP4PPID()==null)||p4ppvlog.getClickTime()==null)
{
return null;
}
this.lines++;
if(this.lines>100000)
{
this.laststartts=(System.currentTimeMillis()/1000)-TS_MAX;
this.lastendts=(System.currentTimeMillis()/1000)+TS_MAX;
this.lines=0;
}
long ts = Long.parseLong(p4ppvlog.getClickTime());
if(ts<laststartts||ts>lastendts)
{
return null;
}