Beispiel #1
0
        private void InitFromForRange <T1>(IndexQuery.RangePredicate <T1> rangePredicate, KEY treeKeyFrom)
        {
            Value fromValue = rangePredicate.FromValue();

            if (fromValue == Values.NO_VALUE)
            {
                treeKeyFrom.initValueAsLowest(ValueGroup.UNKNOWN);
            }
            else
            {
                treeKeyFrom.initialize(rangePredicate.FromInclusive() ? long.MinValue : long.MaxValue);
                treeKeyFrom.from(fromValue);
                treeKeyFrom.CompareId = true;
            }
        }
Beispiel #2
0
        private static void InitFromForRange <T1>(IndexQuery.RangePredicate <T1> rangePredicate, StringIndexKey treeKeyFrom)
        {
            Value fromValue = rangePredicate.FromValue();

            if (fromValue == Values.NO_VALUE)
            {
                treeKeyFrom.InitValueAsLowest(ValueGroup.TEXT);
            }
            else
            {
                treeKeyFrom.Initialize(rangePredicate.FromInclusive() ? long.MinValue : long.MaxValue);
                treeKeyFrom.From(fromValue);
                treeKeyFrom.CompareId = true;
            }
        }