public interface LogEntrySet extends java.lang.Iterable<LogEntry>, java.io.Serializable
LogEntrySet represents a set or list of log
entries.
A log entry set can be accesses concurrently. Each LogEntrySet.Cursor maintains
an internal position that points to the current log entry. The values of the
current entry can be accessed through the methods of LogEntry (which
LogEntrySet.Cursor extends). The cursor either points to an entry or it may also
be positioned before the first or after the last entry. In the latter cases
the accessor methods will of course fail.
Cursor cursor = logEntrySet.getCursor();
while (cursor.nextEntry())
{
...
}
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LogEntrySet.Cursor |
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
LogEntrySet.Cursor |
getCursor()
Returns a cursor positioned before the first entry.
|
LogEntrySet.Cursor |
getCursor(int position)
Returns a cursor positioned at the specified position.
|
int |
getEntryCount()
Returns the number of log entries in this log entry set.
|
Schema |
getSchema()
Returns the schema of this log entry.
|
java.util.Iterator<LogEntry> |
iterator()
Returns an iterator over this log entry sets entries.
|
static final long serialVersionUID
Schema getSchema()
int getEntryCount()
LogEntrySet.Cursor getCursor()
LogEntrySet.Cursor getCursor(int position)
position - the initial position of the cursorjava.util.Iterator<LogEntry> iterator()
LogEntrySet.Cursor, so keeping a reference to a log entry will NOT have the
typically expected effect.iterator in interface java.lang.Iterable<LogEntry>