org.teiid.internal.core.index
Class IndexerOutput

java.lang.Object
  extended by org.teiid.internal.core.index.IndexerOutput
All Implemented Interfaces:
IIndexerOutput

public class IndexerOutput
extends java.lang.Object
implements IIndexerOutput

An indexerOutput is used by an indexer to add documents and word references to an inMemoryIndex. It keeps track of the document being indexed and add the word references to this document (so you do not need to precise the document each time you add a word).


Field Summary
protected  IDocument document
           
protected  InMemoryIndex index
           
protected  IndexedFile indexedFile
           
 
Constructor Summary
IndexerOutput(InMemoryIndex index)
          IndexerOutput constructor comment.
 
Method Summary
 void addDocument(IDocument document)
          Adds the given document to the inMemoryIndex.
 void addRef(char[] word)
          Adds a reference to the given word to the inMemoryIndex.
 void addRef(java.lang.String word)
          Adds a reference to the given word to the inMemoryIndex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected InMemoryIndex index

indexedFile

protected IndexedFile indexedFile

document

protected IDocument document
Constructor Detail

IndexerOutput

public IndexerOutput(InMemoryIndex index)
IndexerOutput constructor comment.

Method Detail

addDocument

public void addDocument(IDocument document)
Adds the given document to the inMemoryIndex.

Specified by:
addDocument in interface IIndexerOutput

addRef

public void addRef(char[] word)
Adds a reference to the given word to the inMemoryIndex.

Specified by:
addRef in interface IIndexerOutput

addRef

public void addRef(java.lang.String word)
Adds a reference to the given word to the inMemoryIndex.

Specified by:
addRef in interface IIndexerOutput


Copyright © 2011. All Rights Reserved.