FindDataBlocks() public method

Returns all ArchiveDataBlocks in the ArchiveFile for the specified historianID with ArchiveDataPoints between the specified startTime and endTime.
public FindDataBlocks ( int historianID, TimeTag startTime, TimeTag endTime, bool preRead = true ) : List
historianID int Historian identifier.
startTime TimeTag Start .
endTime TimeTag End .
preRead bool true to pre-read data to locate write cursor.
return List
Esempio n. 1
0
 /// <summary>
 /// Creates a new <see cref="DataPointScanner"/> instance.
 /// </summary>
 /// <param name="dataBlockAllocationTable"><see cref="ArchiveFileAllocationTable"/> for the file to be scanned.</param>
 /// <param name="historianID">Historian ID to scan for.</param>
 /// <param name="startTime">Desired start time.</param>
 /// <param name="endTime">Desired end time.</param>
 /// <param name="includeStartTime">True to include data points equal to the start time; false to exclude.</param>
 /// <param name="dataReadExceptionHandler">Read exception handler.</param>
 public DataPointScanner(ArchiveFileAllocationTable dataBlockAllocationTable, int historianID, TimeTag startTime, TimeTag endTime, bool includeStartTime, EventHandler<EventArgs<Exception>> dataReadExceptionHandler)
 {
     // Find all data blocks for desired point over given time range
     m_dataBlocks = dataBlockAllocationTable.FindDataBlocks(historianID, startTime, endTime, false);
     m_startTime = startTime;
     m_endTime = endTime;
     m_historianID = historianID;
     m_includeStartTime = includeStartTime;
     m_dataReadExceptionHandler = dataReadExceptionHandler;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new <see cref="DataPointScanner"/> instance.
 /// </summary>
 /// <param name="dataBlockAllocationTable"><see cref="ArchiveFileAllocationTable"/> for the file to be scanned.</param>
 /// <param name="historianID">Historian ID to scan for.</param>
 /// <param name="startTime">Desired start time.</param>
 /// <param name="endTime">Desired end time.</param>
 /// <param name="includeStartTime">True to include data points equal to the start time; false to exclude.</param>
 /// <param name="dataReadExceptionHandler">Read exception handler.</param>
 public DataPointScanner(ArchiveFileAllocationTable dataBlockAllocationTable, int historianID, TimeTag startTime, TimeTag endTime, bool includeStartTime, EventHandler <EventArgs <Exception> > dataReadExceptionHandler)
 {
     // Find all data blocks for desired point over given time range
     m_dataBlocks               = dataBlockAllocationTable.FindDataBlocks(historianID, startTime, endTime, false);
     m_startTime                = startTime;
     m_endTime                  = endTime;
     m_historianID              = historianID;
     m_includeStartTime         = includeStartTime;
     m_dataReadExceptionHandler = dataReadExceptionHandler;
 }