예제 #1
0
 public int Compare(Slice x, Slice y)
 {
     return(ByteUtils.ByteArrayCompare(x.ToByteArray(deepCopy: false), y.ToByteArray(deepCopy: false)));
 }
예제 #2
0
 private byte[] HashedIndexName(string indexAttrName)
 {
     return(DocumentConverter <T> .IndexNamesCache.GetOrAdd(
                indexAttrName,
                _ => ByteUtils.Hash(ByteUtils.StringToBytes(indexAttrName))));
 }