Windows8Api.JetPrereadIndexRanges method
If the records with the specified key ranges are not in the buffer cache, then start asynchronous reads to bring the records into the database buffer cache.
Namespace: Microsoft.Isam.Esent.Interop.Windows8
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetPrereadIndexRanges ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
indexRanges As JET_INDEX_RANGE(), _
rangeIndex As Integer, _
rangeCount As Integer, _
<OutAttribute> ByRef rangesPreread As Integer, _
columnsPreread As JET_COLUMNID(), _
grbit As PrereadIndexRangesGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim indexRanges As JET_INDEX_RANGE()
Dim rangeIndex As Integer
Dim rangeCount As Integer
Dim rangesPreread As Integer
Dim columnsPreread As JET_COLUMNID()
Dim grbit As PrereadIndexRangesGrbitWindows8Api.JetPrereadIndexRanges(sesid, _
tableid, indexRanges, rangeIndex, _
rangeCount, rangesPreread, columnsPreread, _
grbit)
public static void JetPrereadIndexRanges(
JET_SESID sesid,
JET_TABLEID tableid,
JET_INDEX_RANGE[] indexRanges,
int rangeIndex,
int rangeCount,
out int rangesPreread,
JET_COLUMNID[] columnsPreread,
PrereadIndexRangesGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
tableid
Type: Microsoft.Isam.Esent.Interop.JET_TABLEIDThe table to issue the prereads against.
indexRanges
Type: []The key ranges to preread.
rangeIndex
Type: System.Int32The index of the first key range in the array to read.
rangeCount
Type: System.Int32The maximum number of key ranges to preread.
rangesPreread
Type: System.Int32Returns the number of keys actually preread.
columnsPreread
Type: []List of column ids for long value columns to preread.
grbit
Type: Microsoft.Isam.Esent.Interop.Windows8.PrereadIndexRangesGrbitPreread options. Used to specify the direction of the preread.
See also
Reference
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for