Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If the records with the specified keys are not in the buffer cache then start asynchronous reads to bring the records into the database buffer cache.
Namespace: Microsoft.Isam.Esent.Interop.Windows7
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetPrereadKeys ( _
sesid As JET_SESID, _
tableid As JET_TABLEID, _
keys As Byte()(), _
keyLengths As Integer(), _
keyIndex As Integer, _
keyCount As Integer, _
<OutAttribute> ByRef keysPreread As Integer, _
grbit As PrereadKeysGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim tableid As JET_TABLEID
Dim keys As Byte()()
Dim keyLengths As Integer()
Dim keyIndex As Integer
Dim keyCount As Integer
Dim keysPreread As Integer
Dim grbit As PrereadKeysGrbitWindows7Api.JetPrereadKeys(sesid, tableid, _
keys, keyLengths, keyIndex, keyCount, _
keysPreread, grbit)
public static void JetPrereadKeys(
JET_SESID sesid,
JET_TABLEID tableid,
byte[][] keys,
int[] keyLengths,
int keyIndex,
int keyCount,
out int keysPreread,
PrereadKeysGrbit 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.
keys
Type: []The keys to preread. The keys must be sorted.
keyLengths
Type: []The lengths of the keys to preread.
keyIndex
Type: System.Int32The index of the first key in the keys array to read.
keyCount
Type: System.Int32The maximum number of keys to preread.
keysPreread
Type: System.Int32Returns the number of keys to actually preread.
grbit
Type: Microsoft.Isam.Esent.Interop.Windows7.PrereadKeysGrbitPreread options. Used to specify the direction of the preread.