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); } }
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)); }
public override void AddExplicitIndex(CreateIndexDesc spec) { 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) { 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); }
public abstract void AddExplicitIndex(CreateIndexDesc spec);