Interface IReindexableTranslationMemory
Represents an upgraded file-based TM
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public interface IReindexableTranslationMemory
Properties
CanReportReindexRequired
Returns true for file-based TMs capable of reporting whether TUs require reindexing, or false for legacy TMs that do not support this capability.
Declaration
bool CanReportReindexRequired { get; set; }
Property Value
Type | Description |
---|---|
bool |
ReindexRequired
Returns true if any TUs require reindexing, based on the value of their tokenization_signature_hash column, false otherwise, or null if the TM is a legacy file-based TM that does not have this column.
Declaration
bool? ReindexRequired { get; }
Property Value
Type | Description |
---|---|
bool |
TuCountForReindex
Returns the number of TUs that require reindexing, based on the value of their tokenization_signature_hash column, or -1 if the TM is a legacy file-based TM that does not have this column.
Declaration
int TuCountForReindex { get; }
Property Value
Type | Description |
---|---|
int |
Methods
SelectiveReindexTranslationUnits(CancellationToken, IProgress<int>)
Provides similar functionality to ReindexTranslationUnits, except that only TUs that require reindexing are reindexed, based on the value of their tokenization_signature_hash column, or no TUs if the TM is a legacy file-based TM that does not have this column.
Declaration
void SelectiveReindexTranslationUnits(CancellationToken token, IProgress<int> progress)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | token | |
IProgressint | progress |