public void CheckCompositeKey2() { IPartitioner partitioner = new Murmur3Partitioner(); PartitionKey partitionKey = PartitionKey.From((long)18653, 1, 200711); BigInteger? token = partitioner.ComputeToken(partitionKey); Assert.IsTrue(token.HasValue); Assert.IsTrue(token.Value == new BigInteger(-2403361283253792854)); }
public void CheckSingleKey() { IPartitioner partitioner = new Murmur3Partitioner(); PartitionKey partitionKey = PartitionKey.From(0x12345678); BigInteger? token = partitioner.ComputeToken(partitionKey); Assert.IsTrue(token.HasValue); Assert.IsTrue(token.Value == new BigInteger(-8827056344306985898)); }
public void CheckCompositeKey1() { IPartitioner partitioner = new Murmur3Partitioner(); PartitionKey partitionKey = PartitionKey.From((long)1, 1, 200301); BigInteger? token = partitioner.ComputeToken(partitionKey); Assert.IsTrue(token.HasValue); Assert.IsTrue(token.Value == new BigInteger(2268761313986801232)); }