public interface ITmWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the index and forces a commit against the index.
|
void |
commit()
Forces a commit against the index.
|
void |
delete(String id)
Deletes a TranslationUnit based on the id.
|
void |
indexTranslationUnit(TranslationUnit tu)
Indexes a given translation unit.
|
void |
indexTranslationUnit(TranslationUnit tu,
boolean overwrite)
Indexes a given translation unit, possibly overwriting an existing one with the same source.
|
void |
update(TranslationUnit tu)
Updates a TranslationUnit.
|
void close()
OkapiIOException - if the commit can not happenvoid indexTranslationUnit(TranslationUnit tu)
tu - the translation unit to index.OkapiIOException - if the indexing cannot happen.void indexTranslationUnit(TranslationUnit tu, boolean overwrite)
tu - the translation unit to index.overwrite - true to overwrite any existing unit that has the same source content (codes excluded)void delete(String id)
id - The Unique ID of the TU to deleteOkapiIOException - if the delete can not happenvoid update(TranslationUnit tu)
tu - The TranslationUnit to updateOkapiIOException - if the update can not happenvoid commit()
OkapiIOException - if the commit can not happenCopyright © 2021. All rights reserved.