|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.search.indexing.InternalSearchDocument
org.eclipse.jdt.core.search.SearchDocument
public abstract class SearchDocument
A search document encapsulates a content to be either indexed or searched in. A search particpant creates a search document.
This class is intended to be subclassed by clients.
Method Summary | |
---|---|
void |
addIndexEntry(char[] category,
char[] key)
Adds the given index entry (category and key) coming from this document to the index. |
abstract byte[] |
getByteContents()
Returns the contents of this document. |
abstract char[] |
getCharContents()
Returns the contents of this document. |
abstract java.lang.String |
getEncoding()
Returns the encoding for this document. |
SearchParticipant |
getParticipant()
Returns the participant that created this document. |
java.lang.String |
getPath()
Returns the path to the original document to publicly mention in index or search results. |
void |
removeAllIndexEntries()
Removes all index entries from the index for the given document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addIndexEntry(char[] category, char[] key)
SearchParticipant.indexDocument(SearchDocument document, org.eclipse.core.runtime.IPath indexPath)
.
addIndexEntry
in class InternalSearchDocument
category
- the category of the index entrykey
- the key of the index entrypublic abstract byte[] getByteContents()
This method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
null
if nonepublic abstract char[] getCharContents()
This method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
null
if nonepublic abstract java.lang.String getEncoding()
This method must be implemented in subclasses.
null
if nonepublic final SearchParticipant getParticipant()
public final java.lang.String getPath()
getPath
in class InternalSearchDocument
public void removeAllIndexEntries()
SearchParticipant.indexDocument(SearchDocument document, org.eclipse.core.runtime.IPath indexPath)
.
removeAllIndexEntries
in class InternalSearchDocument
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |