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