Class LogFile
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.LogFile
-
public class LogFile extends Object
Represents a redo or archive log in Oracle.- Author:
- Chris Cranford
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetFileName()ScngetFirstScn()ScngetNextScn()inthashCode()booleanisCurrent()Returns whether this log file instance is considered the current online redo log record.booleanisSameRange(LogFile other)Returns whether the specifiedotherlog file has the same SCN range as this instance.
-
-
-
Constructor Detail
-
LogFile
public LogFile(String fileName, Scn firstScn, Scn nextScn)
Create a log file that represents an archived log record.- Parameters:
fileName- the file namefirstScn- the first system change number in the lognextScn- the first system change number in the following log
-
LogFile
public LogFile(String fileName, Scn firstScn, Scn nextScn, boolean current)
Creates a log file that represents an online redo log record.- Parameters:
fileName- the file namefirstScn- the first system change number in the lognextScn- the first system change number in the following logcurrent- whether the log file is the current one
-
-
Method Detail
-
getFileName
public String getFileName()
-
getFirstScn
public Scn getFirstScn()
-
getNextScn
public Scn getNextScn()
-
isCurrent
public boolean isCurrent()
Returns whether this log file instance is considered the current online redo log record.
-
isSameRange
public boolean isSameRange(LogFile other)
Returns whether the specifiedotherlog file has the same SCN range as this instance.- Parameters:
other- the other log file instance- Returns:
- true if both have the same SCN range; otherwise false
-
-