Berkeley DB Java Edition
version 3.2.76

com.sleepycat.je
Class LogScanner

java.lang.Object
  extended by com.sleepycat.je.LogScanner

public class LogScanner
extends Object

Used with Environment.scanLog to scan raw log entries. An instance of a class that implements this interface should be passed to Environment.scanLog.

WARNING: This interface is meant for low level processing of log records, not for application level queries. See the following restrictions!

Please be aware that raw log entries are passed to the scanRecord method. It is the responsibility of the caller to ensure that these records represent valid records in a Database by performing queries such as Database.get. Be sure to take into account the following information about records that are passed to the scanRecord method:


Constructor Summary
LogScanner()
           
 
Method Summary
 boolean scanRecord(DatabaseEntry key, DatabaseEntry data, boolean deleted, String databaseName)
          Called for each record scanned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogScanner

public LogScanner()
Method Detail

scanRecord

public boolean scanRecord(DatabaseEntry key,
                          DatabaseEntry data,
                          boolean deleted,
                          String databaseName)
Called for each record scanned.

Parameters:
key - is the key entry of the record scanned. This parameter will not be null.
data - is the data entry of the record scanned. This parameter may be null for deleted records.
deleted - is true if the given record is deleted at this point in the log. Note that it may also appear earlier or later in the log.
databaseName - the name of the database in which the record appears. Note that if the database was renamed, this is the last known name of the database at the time scanLog is called.

Berkeley DB Java Edition
version 3.2.76

Copyright 1996,2008 Oracle. All rights reserved.