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)); }
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)); }
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)); }
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)); }
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; }