public class ReadAheadIterator
extends java.lang.Object
implements java.util.Iterator
Modifier and Type | Field and Description |
---|---|
static int |
FULL
A constant indicating that full read ahead is required.
|
static int |
LIMITED
A constant indicating that limited read ahead is required.
|
static int |
NONE
A constant indicating that no read ahead is required.
|
Constructor and Description |
---|
ReadAheadIterator(java.util.Iterator source,
int mode)
Create a ReadAheadIterator.
|
ReadAheadIterator(java.util.Iterator source,
int mode,
int amount)
Create a ReadAheadIterator.
|
Modifier and Type | Method and Description |
---|---|
int |
getItemsFoundCount()
Get the number of items read (so far) from the underlying source iterator.
|
int |
getOutputQueueSize()
Deprecated.
Will not be supported in the future.
|
int |
getUsedElementCount()
Deprecated.
Will not be supported in the future.
|
boolean |
hasNext() |
boolean |
isReadAheadComplete()
Check if all available items from the underlying source iterator
have been read.
|
boolean |
isSourceExhausted()
Deprecated.
Use hasNext().
|
java.lang.Object |
next() |
void |
remove() |
public static final int NONE
public static final int LIMITED
public static final int FULL
public ReadAheadIterator(java.util.Iterator source, int mode)
public ReadAheadIterator(java.util.Iterator source, int mode, int amount)
public boolean isReadAheadComplete()
public int getItemsFoundCount()
isReadAheadComplete()
public boolean isSourceExhausted()
public int getUsedElementCount()
getNext()
.getItemsFoundCount()
public int getOutputQueueSize()
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.