Ejemplo 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));
 }
Ejemplo n.º 2
0
 private static StringBuilder BuildFromDescriptor(HBaseDescriptor identifier)
 {
     return new StringBuilder(identifier.Table)
         .AppendFormat(_appendSegmentFormat, string.IsNullOrEmpty(identifier.Row) ? _wildCard : identifier.Row);
 }
Ejemplo 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));
 }