|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that writes out a text stream to a indexed search collection.
An IndexAccessor is created by the following code
IndexAccessor iacc = null;
IndexAccessorConnection iaccConn = null;
iaccConn = IndexAccessorConnectionFactory.createAccessor( getIndex( ) );
iaccConn.openConnection();
iacc = iaccConn.getIndexAccessor();
Do not instantiate this class directly
Supported API: true
Extendable: false
IndexDelegate
,
wt.index.IndexAccessorFactory
Method Summary | |
boolean |
abortIndex()
internal * Supported API: false |
void |
beginDocument()
Mark the beginning of an individual document Call this method immediately after calling writeHeader Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
void |
beginIndex()
Mark the beginning of the indexing stream Call this method immediately after calling writeHeader Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
void |
endDocument()
Mark the end of an individual document Call this method after you are through calling writeItem and writeLob Supported API: true |
void |
endIndex()
Mark the end of the indexing stream Call this method after you have called the final endDocument Supported API: true |
boolean |
writeField(String field_name,
String value)
Write the value to store in field field_name. |
boolean |
writeFile(String name)
internal for testing * Supported API: false |
void |
writeHeader()
Write out the header information to the indexing stream Call this method immediately after getting the IndexAccessor from the IndexAccessorConnection Example: iacc = iaccConn.getIndexAccessor(); iacc.writeHeader( ); iacc.beginIndex( ); Supported API: true |
boolean |
writeItem(String name,
String value)
Write the text in value out to the indexing stream and map it to the field and/or zone that corresponds to the value of name in your formats.cfg file. |
String |
writeLob(InputStream lob_stream,
String contentFileName,
String appOID,
long fileSize,
boolean isZip)
Write the text of the stream passed to a indexing stream. |
boolean |
writeMetaData(String data)
Write the value to store in field field_name. |
boolean |
writeTokenFormat(String line)
internal * Supported API: false |
boolean |
writeType(String name)
Write the type of the object out to the indexing stream. |
Method Detail |
public boolean writeType(String name)
public boolean writeFile(String name)
public boolean writeField(String field_name, String value)
public boolean writeMetaData(String data)
public boolean writeItem(String name, String value)
public String writeLob(InputStream lob_stream, String contentFileName, String appOID, long fileSize, boolean isZip)
ContentHolder
,
ApplicationData
,
ContentServiceSvr
public boolean writeTokenFormat(String line)
public boolean abortIndex()
public void writeHeader() throws IndexingException
IndexingException
public void beginIndex() throws IndexingException
IndexingException
public void endIndex() throws IndexingException
IndexingException
public void beginDocument() throws IndexingException
IndexingException
public void endDocument() throws IndexingException
IndexingException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |