org.egothor.core
Interface SequenceWithClose<T>

All Superinterfaces:
Sequence<T>
All Known Subinterfaces:
DataRepository.TupleSequence, IMetaReader
All Known Implementing Classes:
ConcatSeq, DocumentsFastReader, MergeSequence, TermsFastReader

public interface SequenceWithClose<T>
extends Sequence<T>

Sequence allows you to iterate a sequence of not-null objects. The loop you would use may look this way:

   try {
     while ((i=Sequence.next()) != null) {
      :
      :
     }
   } finally {
     Sequence.close();
   }
 

Author:
Leo Galambos

Method Summary
 void close()
          Invalidates this sequence, releases all resources etc.
 
Methods inherited from interface org.egothor.core.Sequence
next
 

Method Detail

close

void close()
Invalidates this sequence, releases all resources etc.