it.unipd.dei.ims.circo.indexing
Class AbstractDocumentEmitter<D>

java.lang.Object
  extended by it.unipd.dei.ims.circo.indexing.AbstractDocumentEmitter<D>
Type Parameters:
D - the actual type of document used by the information retrieval system.
All Implemented Interfaces:
DocumentEmitter<D>, java.lang.Iterable<D>, java.util.Iterator<D>
Direct Known Subclasses:
BaseDocumentEmitter

public abstract class AbstractDocumentEmitter<D>
extends java.lang.Object
implements DocumentEmitter<D>

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

Since:
0.10
Version:
0.10
Author:
Nicola Ferro

Field Summary
protected static it.unipd.dei.ims.ici.logger.Logger logger
          The logger.
 
Constructor Summary
protected AbstractDocumentEmitter()
          Creates a new document emitter.
 
Method Summary
 boolean equals(java.lang.Object o)
          Two DocumentEmitter objects are equal if they have the same identifier.
 java.lang.String getIdentifier()
          Returns the unique identifier of the document emitter.
 int hashCode()
           
 java.util.Iterator<D> iterator()
           
 void remove()
           
 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.DocumentEmitter
close, getInputDirectory, isCompressed
 
Methods inherited from interface java.util.Iterator
hasNext, next
 

Field Detail

logger

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

Constructor Detail

AbstractDocumentEmitter

protected AbstractDocumentEmitter()
Creates a new document emitter.

Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface DocumentEmitter<D>
Returns:
the unique identifier of the document emitter.

iterator

public final java.util.Iterator<D> iterator()
Specified by:
iterator in interface java.lang.Iterable<D>

remove

public final void remove()
Specified by:
remove in interface java.util.Iterator<D>

toString

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

equals

public boolean equals(java.lang.Object o)
Two DocumentEmitter 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.