예제 #1
0
        /// <summary>
        /// 删除索引表1、2
        /// </summary>
        public static void DeleteGlobalIndex()
        {
            OTSClient otsClient = Config.GetClient();

            Console.WriteLine("Start delete globalIndex...");

            DeleteGlobalIndexRequest request = new DeleteGlobalIndexRequest(TableName, IndexName);

            otsClient.DeleteGlobalIndex(request);

            DeleteGlobalIndexRequest request2 = new DeleteGlobalIndexRequest(TableName, IndexName2);

            otsClient.DeleteGlobalIndex(request2);

            Console.WriteLine("Global Index is deleted,tableName: " + TableName + ",IndexName:" + IndexName + "," + IndexName2);
        }