com.sun.labs.minion.indexer.partition
Interface Dumper

All Superinterfaces:
com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable
All Known Implementing Classes:
AsyncDumper, SyncDumper, ThrowDumper

public interface Dumper
extends com.sun.labs.util.props.Configurable

An interface for partition dumpers.


Method Summary
 void dump(Stage s)
          Dumps the pipeline stage, which is assumed to be something that contains indexed data.
 void finish()
          Indicates that we are finished indexing.
 int getQueueLength()
          Gets the length of the queue that this dumper is using to store partitions before dumping them.
 void setSearchEngine(SearchEngine e)
          Sets the search engine that this dumper will be dumping partitions for.
 
Methods inherited from interface com.sun.labs.util.props.Configurable
newProperties
 

Method Detail

setSearchEngine

void setSearchEngine(SearchEngine e)
Sets the search engine that this dumper will be dumping partitions for.

Parameters:
e - the engine that this dumper will be used by

dump

void dump(Stage s)
Dumps the pipeline stage, which is assumed to be something that contains indexed data.

Parameters:
s - a pipeline stage containing data to be dumped.

getQueueLength

int getQueueLength()
Gets the length of the queue that this dumper is using to store partitions before dumping them.

Returns:
the queue length.

finish

void finish()
Indicates that we are finished indexing. Pending work should be completed.