public void AddIndex(IndexConfig indexConfig) { CheckNotNull(indexConfig, "Index config cannot be null."); var indexConfig0 = ValidateAndNormalize(Name, indexConfig); var request = MapAddIndexCodec.EncodeRequest(Name, indexConfig0); Invoke(request); }
Task AddIndexAsync(IndexConfig indexConfig, CancellationToken cancellationToken) { if (indexConfig == null) { throw new ArgumentNullException(nameof(indexConfig)); } var requestMessage = MapAddIndexCodec.EncodeRequest(Name, indexConfig.ValidateAndNormalize(Name)); var task = Cluster.Messaging.SendAsync(requestMessage, cancellationToken); #if HZ_OPTIMIZE_ASYNC return(task); #else await task.CAF(); #endif }
public void AddIndex(string attribute, bool ordered) { var request = MapAddIndexCodec.EncodeRequest(GetName(), attribute, ordered); Invoke(request); }