public void Cleanup() { if (!String.IsNullOrEmpty(tableName)) { HBaseHelper.DeleteTable(Settings.HBaseConnectionString, tableName); } }
public void Initialize() { tableName = Guid.NewGuid().ToString("N"); sampleData = SampleData .GetSimpleDocuments(NumberOfItems) .Select(i => i // Add RowId field .Union(new[] { new KeyValuePair <string, object>(HBaseHelper.RowIdPropertyName, i["id"]) }) .ToDictionary(p => p.Key, p => p.Value)) .ToArray(); HBaseHelper.CreateSampleTable(Settings.HBaseConnectionString, tableName, sampleData); }