|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unipd.dei.ims.circo.indexing.AbstractDocumentEmitter<D>
it.unipd.dei.ims.circo.indexing.BaseDocumentEmitter<D>
D - the actual type of document used by the information
retrieval system.public abstract class BaseDocumentEmitter<D>
Provides a base for the implementation of the DocumentEmitter
interface.
| Field Summary |
|---|
| Fields inherited from class it.unipd.dei.ims.circo.indexing.AbstractDocumentEmitter |
|---|
logger |
| Constructor Summary | |
|---|---|
protected |
BaseDocumentEmitter(java.io.File inputDirectory,
boolean compressed)
Creates a new document emitter. |
protected |
BaseDocumentEmitter(java.lang.String inputDirectory,
boolean compressed)
Creates a new document emitter. |
| Method Summary | |
|---|---|
protected void |
endStreamChunk()
Ends the current stream chunk. |
protected java.io.File |
getCurrentInputFile()
Returns the input file where the current chunk is being read. |
protected Stream |
getCurrentStreamChunk()
Returns the current stream chunk which is being processed. |
java.lang.String |
getInputDirectory()
Returns the directory where stream chunks are stored. |
protected boolean |
hasNextResource()
Checks whether there is one more resource to be read. |
boolean |
isCompressed()
Checks whether the emitter is reading compressed the stream chunks. |
protected Resource |
nextResource()
Reads the next resource in the current stream chunk. |
protected boolean |
startStreamChunk()
Starts a new stream chunk. |
| Methods inherited from class it.unipd.dei.ims.circo.indexing.AbstractDocumentEmitter |
|---|
equals, getIdentifier, hashCode, iterator, remove, 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, getIdentifier |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Constructor Detail |
|---|
protected BaseDocumentEmitter(java.io.File inputDirectory,
boolean compressed)
inputDirectory - the directory where stream chunks are stored.compressed - indicates whether the stream chunks are compressed or not.
protected BaseDocumentEmitter(java.lang.String inputDirectory,
boolean compressed)
inputDirectory - the directory where stream chunks are stored.compressed - indicates whether the stream chunks are compressed or not.| Method Detail |
|---|
public final java.lang.String getInputDirectory()
DocumentEmitter
getInputDirectory in interface DocumentEmitter<D>public final boolean isCompressed()
DocumentEmitter
isCompressed in interface DocumentEmitter<D>true if he emitter is reading compressed the stream
chunks; false otherwise.protected final java.io.File getCurrentInputFile()
protected final Stream getCurrentStreamChunk()
protected final boolean startStreamChunk()
throws it.unipd.dei.ims.ici.component.ComponentException
true if a new stream chunk has started; false
otherwise.
it.unipd.dei.ims.ici.component.ComponentException - if something goes wrong while starting the chunk.
protected final void endStreamChunk()
throws it.unipd.dei.ims.ici.component.ComponentException
it.unipd.dei.ims.ici.component.ComponentException - if something goes wrong while ending the chunk.protected final boolean hasNextResource()
true if there is one more resource to be read; false otherwise.
protected final Resource nextResource()
throws it.unipd.dei.ims.ici.component.ComponentException
null otherwise.
it.unipd.dei.ims.ici.component.ComponentException - if something goes wrong while starting the resource.
|
Copyright © 2008-2009 Information Management Systems (IMS) research group, Department of Information Engineering, University of Padua, Italy. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||