Пример #1
0
        public ReadSpec GetReadSpec(RCSymbol symbol, int limit, bool force, bool fill)
        {
            ReadSpec result = new ReadSpec(this, limit, force, fill);

            if (limit == 0)
            {
                limit = int.MaxValue;
            }
            for (int i = 0; i < symbol.Count; ++i)
            {
                CountRecord current = Get(symbol[i]);
                if (current != null)
                {
                    // Start searching from the first known record.
                    result.Add(symbol[i], current.start, limit);
                }
                else
                {
                    // In this case we know there is no data so any search should begin
                    // from the end of time.
                    result.Add(symbol[i], _dispatched.Count, limit);
                }
            }
            return(result);
        }
Пример #2
0
        public ReadSpec GetReadSpec(RCSymbol symbol, RCLong starts, bool force, bool fill)
        {
            ReadSpec result = new ReadSpec(this, 0, force, fill);

            for (int i = 0; i < symbol.Count; ++i)
            {
                result.Add(symbol[i], (int)starts[i], int.MaxValue);
            }
            return(result);
        }