Example #1
0
 public void HandleStartIndex(CreateIndexDesc spec)
 {
     try
     {
         var fields = spec.Columns
                      .Select(col => new VirtualDataWindowEventStartIndex.VDWCreateIndexField(col.Name, col.Type == CreateIndexType.HASH))
                      .ToList();
         var create = new VirtualDataWindowEventStartIndex(
             spec.WindowName, spec.IndexName, fields, spec.IsUnique);
         _dataExternal.HandleEvent(create);
     }
     catch (Exception ex)
     {
         var message =
             "Exception encountered invoking virtual data window handle start-index event for window '" +
             _namedWindowName + "': " + ex.Message;
         Log.Warn(message, ex);
         throw new EPException(message, ex);
     }
 }
Example #2
0
 public abstract void AddExplicitIndex(CreateIndexDesc spec, bool isRecoveringResilient, bool allowIndexExists);
 public override void AddExplicitIndex(CreateIndexDesc spec)
 {
     IndexRepository.ValidateAddExplicitIndex(spec.IsUnique, spec.IndexName, spec.Columns, TableMetadata.InternalEventType, new PrimaryIndexIterable(_rows));
 }
Example #4
0
 public override void AddExplicitIndex(CreateIndexDesc spec)
 {
     throw new ExprValidationException("Tables without primary key column(s) do not allow creating an index");
 }
Example #5
0
 public override void AddExplicitIndex(CreateIndexDesc spec, bool isRecoveringResilient, bool allowIndexExists)
 {
     throw new ExprValidationException("Tables without primary key column(s) do not allow creating an index");
 }
 public override void AddExplicitIndex(CreateIndexDesc spec, bool isRecoveringResilient, bool allowIndexExists)
 {
     _indexRepository.ValidateAddExplicitIndex(spec.IsUnique, spec.IndexName, spec.Columns, _tableMetadata.InternalEventType, new PrimaryIndexIterable(_rows), AgentInstanceContext, isRecoveringResilient || allowIndexExists, null);
 }
Example #7
0
 public abstract void AddExplicitIndex(CreateIndexDesc spec);