DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Index.SystemContextExtensions Class Reference

Static Public Member Functions

static IIndexFactory ResolveIndexFactory (this ISystemContext context, string indexType)
 
static ColumnIndex CreateColumnIndex (this ISystemContext context, string indexType, ColumnIndexContext indexContext)
 
static ColumnIndex CreateColumnIndex (this ISystemContext context, string indexType, ITable table, int columnOffset)
 
static ColumnIndex CreateColumnIndex (this ISystemContext context, string indexType, ITable table, int columnOffset, IEnumerable< KeyValuePair< string, object >> metadata)
 

Detailed Description

Definition at line 25 of file SystemContextExtensions.cs.

Member Function Documentation

static ColumnIndex Deveel.Data.Index.SystemContextExtensions.CreateColumnIndex ( this ISystemContext  context,
string  indexType,
ColumnIndexContext  indexContext 
)
inlinestatic

Definition at line 30 of file SystemContextExtensions.cs.

31  {
32  var factory = context.ResolveIndexFactory(indexType);
33  if (factory == null)
34  throw new NotSupportedException(String.Format("None index factory for type '{0}' was configured in the system.", indexType));
35 
36  return factory.CreateIndex(indexContext);
37  }
A long string in the system.
static ColumnIndex Deveel.Data.Index.SystemContextExtensions.CreateColumnIndex ( this ISystemContext  context,
string  indexType,
ITable  table,
int  columnOffset 
)
inlinestatic

Definition at line 39 of file SystemContextExtensions.cs.

40  {
41  return CreateColumnIndex(context, indexType, table, columnOffset, null);
42  }
static ColumnIndex CreateColumnIndex(this ISystemContext context, string indexType, ColumnIndexContext indexContext)
static ColumnIndex Deveel.Data.Index.SystemContextExtensions.CreateColumnIndex ( this ISystemContext  context,
string  indexType,
ITable  table,
int  columnOffset,
IEnumerable< KeyValuePair< string, object >>  metadata 
)
inlinestatic

Definition at line 44 of file SystemContextExtensions.cs.

45  {
46  return context.CreateColumnIndex(indexType, new ColumnIndexContext(table, columnOffset, metadata));
47  }
static IIndexFactory Deveel.Data.Index.SystemContextExtensions.ResolveIndexFactory ( this ISystemContext  context,
string  indexType 
)
inlinestatic

Definition at line 26 of file SystemContextExtensions.cs.

26  {
27  return context.ResolveService<IIndexFactory>(indexType);
28  }

The documentation for this class was generated from the following file: