private static SortedSet <DateTime> CreateDateValues() { var values = new SortedSet <DateTime>(); for (long i = -50; i < 50; i++) { values.Add(EpochTime.UnixEpoch.AddDays(i)); } values.Add(EpochTime.FromUnixTimeDays((int)KuduPredicate.MinIntValue(KuduType.Date))); values.Add(EpochTime.FromUnixTimeDays((int)KuduPredicate.MinIntValue(KuduType.Date) + 1)); values.Add(EpochTime.FromUnixTimeDays((int)KuduPredicate.MaxIntValue(KuduType.Date) - 1)); values.Add(EpochTime.FromUnixTimeDays((int)KuduPredicate.MaxIntValue(KuduType.Date))); return(values); }
private static SortedSet <long> CreateIntegerValues(KuduType type) { var values = new SortedSet <long>(); for (long i = -50; i < 50; i++) { values.Add(i); } values.Add(KuduPredicate.MinIntValue(type)); values.Add(KuduPredicate.MinIntValue(type) + 1); values.Add(KuduPredicate.MaxIntValue(type) - 1); values.Add(KuduPredicate.MaxIntValue(type)); return(values); }
private static List <DateTime> CreateDateTestValues() { return(new List <DateTime> { EpochTime.FromUnixTimeDays((int)KuduPredicate.MinIntValue(KuduType.Date)), EpochTime.FromUnixTimeDays((int)KuduPredicate.MinIntValue(KuduType.Date) + 1), EpochTime.UnixEpoch.AddDays(-51), EpochTime.UnixEpoch.AddDays(-50), EpochTime.UnixEpoch, EpochTime.UnixEpoch.AddDays(49), EpochTime.UnixEpoch.AddDays(50), EpochTime.FromUnixTimeDays((int)KuduPredicate.MaxIntValue(KuduType.Date) - 1), EpochTime.FromUnixTimeDays((int)KuduPredicate.MaxIntValue(KuduType.Date)) }); }
private static List <long> CreateIntegerTestValues(KuduType type) { return(new List <long> { KuduPredicate.MinIntValue(type), KuduPredicate.MinIntValue(type) + 1, -51L, -50L, 0L, 49L, 50L, KuduPredicate.MaxIntValue(type) - 1, KuduPredicate.MaxIntValue(type) }); }