예제 #1
0
 private byte[] FullyQualifiedTable(RegionInfo reg)
 {
     if (reg.Namespace?.Any() != true)
     {
         return(reg.Table);
     }
     return(BinaryEx.ConcatInOrder(reg.Namespace, new[] { ConstByte.Colon }, reg.Table));
 }
예제 #2
0
        public static byte[] CreateRegionSearchKey(byte[] table, byte[] key)
        {
            var metaKey = BinaryEx.ConcatInOrder(
                table,
                new[] { ConstByte.Comma },
                key,
                new[] { ConstByte.Comma },
                new[] { ConstByte.Colon }
                );

            return(metaKey);
        }