Exemplo n.º 1
0
 public void Cleanup()
 {
     if (!String.IsNullOrEmpty(tableName))
     {
         HBaseHelper.DeleteTable(Settings.HBaseConnectionString, tableName);
     }
 }
Exemplo n.º 2
0
 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);
 }