Example #1
0
        internal static Query Create(string[] tokens)
        {
            if (!tokens[2].Equals("Q"))
                throw new ArgumentException("unexpected type");
            Query query = new Query();

            query.Time = long.Parse(tokens[1]);
            query.SERPID = UInt64.Parse(tokens[3]);
            query.QueryID = UInt64.Parse(tokens[4]);

            query.URLs = new List<ulong>();
            for (int i = 5; i < tokens.Length; i++)
            {
                var url = UInt64.Parse(tokens[i]);
                query.URLs.Add(url);
            }
            return query;
        }
Example #2
0
 public void AddQuery(Query query)
 {
     Actions.Add(query);
 }