예제 #1
0
        private async Task DelectedTableTest()
        {
            var table = _hbaseHelper.GetTableName <Student>();

            var cancel = new CancellationToken();

            var tables = await _client.getTableNamesAsync(cancel);

            if (!tables.Select(t => t.ToObject <string>()).Contains(table))
            {
                return;
            }

            await _client.disableTableAsync(table.ToBytes(), cancel);

            await _client.deleteTableAsync(table.ToBytes(), cancel);
        }