Api.JetIntersectIndexes method
Computes the intersection between multiple sets of index entries from different secondary indices over the same table. This operation is useful for finding the set of records in a table that match two or more criteria that can be expressed using index ranges. Also see IntersectIndexes(JET_SESID, []).
Namespace: Microsoft.Isam.Esent.Interop
Assembly: Microsoft.Isam.Esent.Interop (in Microsoft.Isam.Esent.Interop.dll)
Syntax
'Declaration
Public Shared Sub JetIntersectIndexes ( _
sesid As JET_SESID, _
ranges As JET_INDEXRANGE(), _
numRanges As Integer, _
<OutAttribute> ByRef recordlist As JET_RECORDLIST, _
grbit As IntersectIndexesGrbit _
)
'Usage
Dim sesid As JET_SESID
Dim ranges As JET_INDEXRANGE()
Dim numRanges As Integer
Dim recordlist As JET_RECORDLIST
Dim grbit As IntersectIndexesGrbitApi.JetIntersectIndexes(sesid, _
ranges, numRanges, recordlist, grbit)
public static void JetIntersectIndexes(
JET_SESID sesid,
JET_INDEXRANGE[] ranges,
int numRanges,
out JET_RECORDLIST recordlist,
IntersectIndexesGrbit grbit
)
Parameters
sesid
Type: Microsoft.Isam.Esent.Interop.JET_SESIDThe session to use.
ranges
Type: []An the index ranges to intersect. The tableids in the ranges must have index ranges set on them. Use JetSetIndexRange(JET_SESID, JET_TABLEID, SetIndexRangeGrbit) to create an index range.
numRanges
Type: System.Int32The number of index ranges.
recordlist
Type: Microsoft.Isam.Esent.Interop.JET_RECORDLISTReturns information about the temporary table containing the intersection results.
grbit
Type: Microsoft.Isam.Esent.Interop.IntersectIndexesGrbitIntersection options.