|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
T - specifies the item type returned by this reader.public interface ItemReader<T>
ItemReader defines the batch artifact that reads from a stream of item for chunk processing.
| Method Summary | |
|---|---|
Serializable |
checkpointInfo()
The checkpointInfo method returns the current checkpoint position for this reader. |
void |
close()
The close method marks the end of use of the item stream. |
void |
open(Serializable checkpoint)
The open method prepare the reader to read items. |
T |
readItem()
The readitem method returns the next item from the stream. |
| Method Detail |
|---|
void open(Serializable checkpoint)
throws Exception
checkpoint - specifies the last checkpoint
Exception - is thrown for any errors.
void close()
throws Exception
Exception - is thrown for any errors.
T readItem()
throws Exception
Exception - is thrown for any errors.
Serializable checkpointInfo()
throws Exception
Exception - is thrown for any errors.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||