Esempio n. 1
0
 /// <summary>
 ///   Determines whether the descriptor can describe a row.
 /// </summary>
 /// <param name="descriptor">The descriptor.</param>
 public static bool CanDescribeRow(this HBaseDescriptor descriptor)
 {
     return(descriptor.CanDescribeTable() && !string.IsNullOrEmpty(descriptor.Row));
 }
Esempio n. 2
0
 private static StringBuilder BuildFromDescriptor(HBaseDescriptor identifier)
 {
     return new StringBuilder(identifier.Table)
         .AppendFormat(_appendSegmentFormat, string.IsNullOrEmpty(identifier.Row) ? _wildCard : identifier.Row);
 }
Esempio n. 3
0
 /// <summary>
 ///   Determines whether the descriptor can describe a table.
 /// </summary>
 /// <param name="descriptor">The descriptor.</param>
 public static bool CanDescribeTable(this HBaseDescriptor descriptor)
 {
     return(descriptor != null && !string.IsNullOrEmpty(descriptor.Table));
 }