public abstract class BaseLogFetcher extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected BuffType |
buffType |
protected Charset |
charset |
protected Map<String,List<ListenerConf.ColHis>> |
colsMap |
protected ListenerConf.ConnConf |
connConf |
protected String |
fileName |
protected String |
gtids |
protected boolean |
isChkDb |
protected BinlogMetricGroup |
metric |
protected RuleManager |
ruleManager |
protected ISaveCheckPoint |
saveCheckPoint |
protected long |
xid |
| 限定符 | 构造器和说明 |
|---|---|
protected |
BaseLogFetcher(ListenerConf.ConnConf.Builder connConfBuilder) |
protected String fileName
protected Charset charset
protected String gtids
protected final ListenerConf.ConnConf connConf
protected final RuleManager ruleManager
protected final BinlogMetricGroup metric
protected final BuffType buffType
protected ISaveCheckPoint saveCheckPoint
protected final Map<String,List<ListenerConf.ColHis>> colsMap
protected long xid
protected boolean isChkDb
protected BaseLogFetcher(ListenerConf.ConnConf.Builder connConfBuilder)
protected void parseQueryEvent(net.wicp.tams.common.binlog.parser.event.QueryLogEvent event)
protected void parseGtidLogEvent(net.wicp.tams.common.binlog.parser.event.GtidLogEvent event) throws Exception
Exceptionprotected abstract void parseGtidLogEventSub(net.wicp.tams.common.binlog.parser.event.GtidLogEvent event)
protected abstract void init(ListenerConf.ConnConf.Builder connConfBuilder)
connConfBuilder - public abstract void close()
public abstract void read()
protected void parseXidEvent(net.wicp.tams.common.binlog.parser.event.XidLogEvent event)
protected boolean parseRowsEvent(net.wicp.tams.common.binlog.parser.event.RowsLogEvent event, OptType optType)
protected org.apache.commons.lang3.tuple.Pair<String[],Boolean> parseOneRow(net.wicp.tams.common.binlog.parser.event.RowsLogEvent event, net.wicp.tams.common.binlog.parser.event.RowsLogBuffer buffer, BitSet cols, int colNum, boolean isAfter) throws UnsupportedEncodingException
event - buffer - cols - colNum - isAfter - UnsupportedEncodingExceptionpublic ListenerConf.ColHis findCols(String db, String tb, long time)
public ListenerConf.ColHis ValidKey(String db, String tb, long time)
db - tb - time - public BuffType getBuffType()
Copyright © 2021. All rights reserved.