zyh.robot
Interface ContentProcessor

All Known Implementing Classes:
ContentSorter

public interface ContentProcessor

The interface that every content processor class must implement. ContentProcessor decides on the index policy and does actual index process.

The zyh.robot framework allows for multiple content processors.

See Also:
Content

Method Summary
 void close()
          Uses to release all occupied resource by this content processor
 int[] getWordIDs(Content content)
          Sort and Index a content object.
 

Method Detail

getWordIDs

public int[] getWordIDs(Content content)
                 throws java.sql.SQLException
Sort and Index a content object.
Parameters:
content - an Content object
Returns:
a wordID array of all keywords from the content
Throws:
SQLException - if an index database access error occurs

close

public void close()
           throws java.sql.SQLException
Uses to release all occupied resource by this content processor
Throws:
SQLException - if an index database access error occurs