Пример #1
0
 private IList <Value> AsValues(IList <NumberIndexKey> numberIndexKeys)
 {
     return(numberIndexKeys.Select(k => RawBits.AsNumberValue(k.rawValueBits, k.type)).ToList());
 }
Пример #2
0
 internal static int Compare(long thisLong0, long thisLong1, long thatLong0, long thatLong1)
 {
     return(RawBits.Compare(thisLong0, ( sbyte )thisLong1, thatLong0, ( sbyte )thatLong1));
 }
Пример #3
0
 /// <summary>
 /// Compares the value of this key to that of another key.
 /// This method is expected to be called in scenarios where inconsistent reads may happen (and later retried).
 /// </summary>
 /// <param name="other"> the <seealso cref="NumberIndexKey"/> to compare to. </param>
 /// <returns> comparison against the {@code other} <seealso cref="NumberIndexKey"/>. </returns>
 internal override int CompareValueTo(NumberIndexKey other)
 {
     return(RawBits.Compare(RawValueBits, Type, other.RawValueBits, other.Type));
 }
Пример #4
0
 internal static NumberValue AsValue(long long0, long long1)
 {
     return(RawBits.AsNumberValue(long0, ( sbyte )long1));
 }
Пример #5
0
 internal override NumberValue AsValue()
 {
     return(RawBits.AsNumberValue(RawValueBits, Type));
 }