it.unipd.dei.ims.circo.indexing
Class AbstractStreamEmitter<T,D>

java.lang.Object
  extended by it.unipd.dei.ims.circo.indexing.AbstractStreamEmitter<T,D>
Type Parameters:
T - the actual type of term used by the information retrieval system when tokenizing and processing documents.
D - the actual type of document used by the information retrieval system.
All Implemented Interfaces:
StreamEmitter<T,D>
Direct Known Subclasses:
BaseStreamEmitter, MultipleStreamEmitter

public abstract class AbstractStreamEmitter<T,D>
extends java.lang.Object
implements StreamEmitter<T,D>

Provides an abstract class for the implementation of the StreamEmitter interface.

Since:
0.10
Version:
0.10
Author:
Nicola Ferro

Field Summary
protected static it.unipd.dei.ims.ici.logger.Logger logger
          The logger.
 
Fields inherited from interface it.unipd.dei.ims.circo.indexing.StreamEmitter
DEFAULT_FIELD_NAME, DEFAULT_MAX_RESOURCES_PER_STREAM_CHUNK, DEFAULT_MD_ALGORITHM
 
Constructor Summary
protected AbstractStreamEmitter()
          Creates a new stream emitter.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two StreamEmitter objects are equal if they have the same identifier.
 java.lang.String getIdentifier()
          Returns the unique identifier of the stream emitter.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unipd.dei.ims.circo.indexing.StreamEmitter
addDocument, addTerm, addTerm, close, getActorIdentifier, getComponentIdentifier, getComponentType, getDigestType, getMaxResourcesPerStream, getOutputDirectory, getStreamIdentifier, isCompressing, isTracing
 

Field Detail

logger

protected static final it.unipd.dei.ims.ici.logger.Logger logger
The logger.

Constructor Detail

AbstractStreamEmitter

protected AbstractStreamEmitter()
Creates a new stream emitter.

Method Detail

getIdentifier

public final java.lang.String getIdentifier()
Description copied from interface: StreamEmitter
Returns the unique identifier of the stream emitter.

Specified by:
getIdentifier in interface StreamEmitter<T,D>
Returns:
the unique identifier of the stream emitter.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Two StreamEmitter objects are equal if they have the same identifier.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Copyright © 2008-2009 Information Management Systems (IMS) research group,
Department of Information Engineering, University of Padua, Italy.