Class ImportStatistics
Encapsulates the results of an import process without keeping track of the individual action taken for each import TU. The ImportResults give more detail.
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public class ImportStatistics
Constructors
ImportStatistics()
Declaration
public ImportStatistics()
Properties
AddedTranslationUnits
Gets or sets the number of added translation units.
Declaration
public int AddedTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
BadTranslationUnits
Gets or sets the number of bad translation units
Declaration
public int BadTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
DeletedTranslationUnits
Gets or sets the number of overwritten translation units.
Declaration
public int DeletedTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
DiscardedTranslationUnits
Gets or sets the total number of discarded translation units.
Declaration
public int DiscardedTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
Errors
Gets or sets the total number of translation units that generated errors (Action.Error) during the import process.
Declaration
public int Errors { get; set; }
Property Value
Type | Description |
---|---|
int |
MergedTranslationUnits
Gets or sets the number of merged translation units.
Declaration
public int MergedTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
OverwrittenTranslationUnits
Gets or sets the number of overwritten translation units.
Declaration
public int OverwrittenTranslationUnits { get; set; }
Property Value
Type | Description |
---|---|
int |
RawTUs
Gets or sets the number of "raw" TUs which have been encountered in the input file. Since some import engines (such as the TMXImporter) map multilingual TUs to bilingual 1:1 TUs, and also filter out language directions the caller doesn't want to process, the number of raw TUs may significantly differ from the number of read TUs.
Declaration
public int RawTUs { get; set; }
Property Value
Type | Description |
---|---|
int |
TotalImported
Gets the total number of imported translation units (the sum of added, merged, and overwritten TUs).
Declaration
public int TotalImported { get; }
Property Value
Type | Description |
---|---|
int |
TotalRead
Gets or sets the number of total TUs which have been processed by the import engine.
Declaration
public int TotalRead { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Add(ImportStatistics)
Adds, for each count category, the values of the other instance to the same count category of this instance.
Declaration
public void Add(ImportStatistics other)
Parameters
Type | Name | Description |
---|---|---|
ImportStatistics | other | The counts to add |