<PackageReference Include="Relativity.Server.Import.SDK" Version="24000.1.0" />

DataReaderReader

protected long _currentLineNumber

public long BytesProcessed { get; }

public int CurrentLineNumber { get; }

public bool HasMoreRecords { get; }

public long SizeInBytes { get; }

public string TemporaryLocalDirectory { get; set; }

public void AdvanceRecord()

public void Close()

Reads all remaining rows and then closes IDataReader. This is because the only way to get the total number of records is to read all the rows.

public long? CountRecords()

Returns total records count, but only when _reader already read all the records, otherwise returns null. This is because _reader is a forward-only record viewer and does not contain information about total number of rows. To calculate total number of records we need to iterate through all the rows and increment _currentLineNumber

public string[] GetColumnNames(object args)

public void Halt()

public string ManageErrorRecords(string errorMessageFileLocation, string prePushErrorLineNumbersFileName)

public void OnFatalErrorState()

protected void SetFieldValue(ArtifactField field, object value)

protected void SetFieldValueInvoker(int idx, ArtifactField field, string displayName)

public string SourceIdentifierValue()

public void ValidateColumnNames(Action<string> invalidNameAction)