org.lexgrid.loader.reader
Class BufferedGroupItemReader<I>

java.lang.Object
  extended by org.lexgrid.loader.reader.BufferedGroupItemReader<I>
All Implemented Interfaces:
org.springframework.batch.item.ItemReader<java.util.List<I>>
Direct Known Subclasses:
SizeLimitedBufferedGroupItemReader

public class BufferedGroupItemReader<I>
extends java.lang.Object
implements org.springframework.batch.item.ItemReader<java.util.List<I>>

The Class BufferedGroupItemReader.

Author:
Kevin Peterson

Field Summary
protected  I lastItem
          The last item.
 
Constructor Summary
BufferedGroupItemReader()
           
 
Method Summary
 org.springframework.batch.item.ItemReader<I> getDelegate()
          Gets the delegate.
 GroupDiscriminator<I> getGroupDiscriminator()
          Gets the group discriminator.
protected  boolean process(I value, java.util.List<I> buffer)
          Process.
 java.util.List<I> read()
           
 void setDelegate(org.springframework.batch.item.ItemReader<I> delegate)
          Sets the delegate.
 void setGroupDiscriminator(GroupDiscriminator<I> groupDiscriminator)
          Sets the group discriminator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastItem

protected I lastItem
The last item.

Constructor Detail

BufferedGroupItemReader

public BufferedGroupItemReader()
Method Detail

read

public java.util.List<I> read()
                       throws java.lang.Exception
Specified by:
read in interface org.springframework.batch.item.ItemReader<java.util.List<I>>
Throws:
java.lang.Exception

process

protected boolean process(I value,
                          java.util.List<I> buffer)
Process.

Parameters:
value - the value
buffer - the buffer
Returns:
true, if successful

getDelegate

public org.springframework.batch.item.ItemReader<I> getDelegate()
Gets the delegate.

Returns:
the delegate

setDelegate

public void setDelegate(org.springframework.batch.item.ItemReader<I> delegate)
Sets the delegate.

Parameters:
delegate - the new delegate

getGroupDiscriminator

public GroupDiscriminator<I> getGroupDiscriminator()
Gets the group discriminator.

Returns:
the group discriminator

setGroupDiscriminator

public void setGroupDiscriminator(GroupDiscriminator<I> groupDiscriminator)
Sets the group discriminator.

Parameters:
groupDiscriminator - the new group discriminator

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.