コード例 #1
0
 public TableMetadata(
     string name,
     Type type,
     IOperationsProvider operationsProvider = null)
 {
     Name = name;
     Type = type;
     OperationsProvider = operationsProvider;
 }
コード例 #2
0
ファイル: SqlExecutor.cs プロジェクト: koralium/Koralium
 public SqlExecutor(
     ISqlParser sqlParser,
     TablesMetadata tablesMetadata,
     IQueryExecutor queryExecutor,
     ISearchExpressionProvider searchExpressionProvider,
     IOperationsProvider operationsProvider)
 {
     _sqlParser                = sqlParser;
     _tablesMetadata           = tablesMetadata;
     _queryExecutor            = queryExecutor;
     _stageConverter           = new StageConverter();
     _searchExpressionProvider = searchExpressionProvider;
     _operationsProvider       = operationsProvider;
 }
コード例 #3
0
 static Real()
 {
     if (typeof(T) == typeof(DdReal))
     {
         op = (IOperationsProvider <T>) new DdOperationsProvider();
     }
     else if (typeof(T) == typeof(QdReal))
     {
         op = (IOperationsProvider <T>) new QdOperationsProvider();
     }
     else
     {
         Debug.Fail("Should not get there");
     }
 }
コード例 #4
0
ファイル: KoraliumTable.cs プロジェクト: koralium/Koralium
 public KoraliumTable(
     string name,
     Type resolver,
     Type entityType,
     IReadOnlyList <TableColumn> columns,
     string securityPolicy,
     IReadOnlyList <TableIndex> indices,
     IOperationsProvider operationsProvider,
     PartitionResolver partitionResolver)
 {
     Name               = name;
     Resolver           = resolver;
     EntityType         = entityType;
     Columns            = columns;
     SecurityPolicy     = securityPolicy;
     Indices            = indices;
     OperationsProvider = operationsProvider;
     PartitionResolver  = partitionResolver;
 }
コード例 #5
0
        public VisitorMetadata(
            SqlParameters sqlParameters,
            TablesMetadata tablesMetadata,
            ISearchExpressionProvider searchExpressionProvider,
            IOperationsProvider operationsProvider)
        {
            Debug.Assert(tablesMetadata != null);

            if (sqlParameters != null)
            {
                Parameters = sqlParameters;
            }
            else
            {
                Parameters = new SqlParameters();
            }
            TablesMetadata           = tablesMetadata;
            SearchExpressionProvider = searchExpressionProvider;
            OperationsProvider       = operationsProvider;
        }
 public InterceptableOperationOrchestrator(IOperationsProvider <OperationContextType> provider,
                                           IEnumerable <IOperationInterceptable <OperationContextType> > interceptors) : base(provider)
 {
     _interceptors = interceptors;
 }
コード例 #7
0
 public ITableResolverBuilder <Entity> SetOperationsProvider(IOperationsProvider operationsProvider)
 {
     _operationsProvider = operationsProvider;
     return(this);
 }
 public OperationOrchestrator(IOperationsProvider <OperationContextType> provider,
                              IOrchestrationStrategy <OperationContextType> strategy)
 {
     _provider = provider;
     _strategy = strategy;
 }
 public OperationOrchestrator(IOperationsProvider <OperationContextType> provider)
     : this(provider, new SequentialOrchestrationStrategy <OperationContextType>())
 {
 }
コード例 #10
0
 public PoliciesGenerator(IFileExporter <TResult> fileExporter, IBuildersFactory <TOperationPolicy> buildersFactory, IOperationsProvider operationsProvider) : base(fileExporter, operationsProvider)
 {
     _buildersFactory = buildersFactory;
 }
コード例 #11
0
 public ReversibleOperationOrchestrator(IOperationsProvider <OperationContextType> provider) : base(provider)
 {
 }
コード例 #12
0
 public TPLBasedParallelOperationsOrchestrator(IOperationsProvider <OperationContextType> provider) : base(provider)
 {
 }
コード例 #13
0
 protected Generator(IFileExporter <T> fileExporter, IOperationsProvider operationsProvider)
 {
     FileExporter       = fileExporter;
     OperationsProvider = operationsProvider;
 }
コード例 #14
0
 public PeriodicBackgroundOperationOrchestrator(IOperationsProvider <OperationContextType> provider,
                                                ITriggerPeriodicBackgroundOperation trigger) : base(provider)
 {
     _trigger = trigger;
 }
コード例 #15
0
 public OperationsController(IOperationsProvider operationsProvider)
 {
     this.operationsProvider = operationsProvider;
 }