Package com._1c.g5.v8.dt.search.core
Interface IIndexer
-
public interface IIndexer
The main service providing methods for indexing text content.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addToIndex(IBmObject bmObject)
Adds the given objects' text data to the index.void
indexLocalString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.util.EMap<String,String> values, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update)
Index object local stringsvoid
indexMultiLineString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BufferedReader content, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update)
Index object multiline stringsvoid
indexSingleLineString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, String content, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update)
Index object stringsvoid
removeFromIndex(IBmObject bmObject)
Removes the given object's text data from the index.void
removeFromIndex(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature)
Remove the value text data of given object-feature from the index.void
removeFromIndex(String projectName, long bmId, Collection<org.eclipse.emf.ecore.EStructuralFeature> features)
Remove the value text data of given project, object id-feature from the index.void
removeFromIndex(org.eclipse.core.resources.IProject project)
Removes all indexed date for projectvoid
updateInIndex(IBmObject bmObject)
Updates the index in accordance with the object's state.void
waitForIndexCommit()
Waits while changes in index will be commited
-
-
-
Method Detail
-
addToIndex
void addToIndex(IBmObject bmObject) throws org.eclipse.core.runtime.CoreException
Adds the given objects' text data to the index.- Parameters:
bmObject
- the object, cannot benull
- Throws:
org.eclipse.core.runtime.CoreException
- in case there are problems with writing the index.
-
updateInIndex
void updateInIndex(IBmObject bmObject) throws org.eclipse.core.runtime.CoreException
Updates the index in accordance with the object's state.- Parameters:
bmObject
- the object, cannot benull
- Throws:
org.eclipse.core.runtime.CoreException
- in case there are problems with writing the index.
-
removeFromIndex
void removeFromIndex(IBmObject bmObject) throws org.eclipse.core.runtime.CoreException
Removes the given object's text data from the index.- Parameters:
bmObject
- the object, cannot benull
- Throws:
org.eclipse.core.runtime.CoreException
- in case there are problems with writing the index.
-
removeFromIndex
void removeFromIndex(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature)
Remove the value text data of given object-feature from the index.- Parameters:
bmObject
- the object, cannot benull
feature
- the feature, cannot benull
-
removeFromIndex
void removeFromIndex(String projectName, long bmId, Collection<org.eclipse.emf.ecore.EStructuralFeature> features)
Remove the value text data of given project, object id-feature from the index.- Parameters:
projectName
- actual project name for delete object, cannot benull
bmId
- the id objectfeatures
- the indexed features of object, cannot benull
-
removeFromIndex
void removeFromIndex(org.eclipse.core.resources.IProject project)
Removes all indexed date for project- Parameters:
project
- the project for deleting index, cannot benull
-
waitForIndexCommit
void waitForIndexCommit()
Waits while changes in index will be commited
-
indexLocalString
void indexLocalString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.common.util.EMap<String,String> values, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update) throws IOException
Index object local strings- Parameters:
bmObject
- the context object, cannot benull
feature
- the feature of local strings, cannot benull
values
- the local string values, cannot benull
searchFor
- theSearchFor
index group identifier, cannot benull
searchIn
- theSearchIn
index group identifier, cannot benull
searchScope
- theSearchScope
index group identifier, cannot benull
update
- flag of adding or updating index data- Throws:
IOException
- if there is a low-level IO error
-
indexMultiLineString
void indexMultiLineString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, BufferedReader content, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update) throws IOException
Index object multiline strings- Parameters:
bmObject
- the context object, cannot benull
feature
- the feature of multiline strings, cannot benull
content
- the multiline string values, cannot benull
searchFor
- theSearchFor
index group identifier, cannot benull
searchIn
- theSearchIn
index group identifier, cannot benull
searchScope
- theSearchScope
index group identifier, cannot benull
update
- flag of adding or updating index data- Throws:
IOException
- if there is a low-level IO error
-
indexSingleLineString
void indexSingleLineString(IBmObject bmObject, org.eclipse.emf.ecore.EStructuralFeature feature, String content, SearchFor searchFor, SearchIn searchIn, SearchScope searchScope, boolean update) throws IOException
Index object strings- Parameters:
bmObject
- the context object, cannot benull
feature
- the feature of multiline strings, cannot benull
content
- the multiline string values, cannot benull
searchFor
- theSearchFor
index group identifier, cannot benull
searchIn
- theSearchIn
index group identifier, cannot benull
searchScope
- theSearchScope
index group identifier, cannot benull
update
- flag of adding or updating index data- Throws:
IOException
- if there is a low-level IO error
-
-