Esempio n. 1
0
        public static ITableDecoratorBigQueryable <T> WithRange <T>(this IFromBigQueryable <T> source, TimeSpan relativeTimeFrom, TimeSpan relativeTimeTo)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(new TableDecoratorBigQueryable <T>(source, DecorateType.Range, relativeTime1: relativeTimeFrom, relativeTime2: relativeTimeTo));
        }
Esempio n. 2
0
        public static ITableDecoratorBigQueryable <T> WithRange <T>(this IFromBigQueryable <T> source, DateTimeOffset absoluteTimeFrom, DateTimeOffset absoluteTimeTo)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(new TableDecoratorBigQueryable <T>(source, DecorateType.Range, absoluteTime1: absoluteTimeFrom, absoluteTime2: absoluteTimeTo));
        }
Esempio n. 3
0
        public static ITableDecoratorBigQueryable <T> WithSnapshot <T>(this IFromBigQueryable <T> source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(new TableDecoratorBigQueryable <T>(source, DecorateType.Snapshot, absoluteTime1: TableDecoratorBigQueryable <T> .Zero));
        }
Esempio n. 4
0
        public static ITableDecoratorBigQueryable <T> WithSnapshot <T>(this IFromBigQueryable <T> source, TimeSpan relativeTime)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            return(new TableDecoratorBigQueryable <T>(source, DecorateType.Snapshot, relativeTime1: relativeTime));
        }
Esempio n. 5
0
 internal TableDecoratorBigQueryable(IFromBigQueryable <T> parent, DecorateType type, DateTimeOffset?absoluteTime1 = null, DateTimeOffset?absoluteTime2 = null, TimeSpan?relativeTime1 = null, TimeSpan?relativeTime2 = null)
     : base(new RootBigQueryable <T>(parent.QueryContext))
 {
     this.type          = type;
     this.typedParent   = parent;
     this.absoluteTime1 = absoluteTime1;
     this.absoluteTime2 = absoluteTime2;
     this.relativeTime1 = relativeTime1;
     this.relativeTime2 = relativeTime2;
 }