正在加载图片...
Steps in the query var logentries= from line in logs Go through logs and keep only lines where !line. StartsWith ("# " that are not comments Parse select new Log Entry(line) each line into a LogEntry object var user from access in logentries Go through logentries and keep there access user. EndsWith (@"lulfar") only entries that are accesses select access by ulfar var accesses from access in user group access by access. page into pages select new UserPage Count("ulfar" pages. Key, pages. Count(); var htmaccesses Group ulfar's accesses according from access in accesses where access page EndsWith " htm") to what page they correspond to orderby access. count descending For each page, count the occurrences select access Sort the pages ulfar has accessed according to access frequencySteps in the query var logentries = from line in logs where !line.StartsWith("#") select new LogEntry(line); var user = from access in logentries where access.user.EndsWith(@"\ulfar") select access; var accesses = from access in user group access by access.page into pages select new UserPageCount("ulfar", pages.Key, pages.Count()); var htmAccesses = from access in accesses where access.page.EndsWith(".htm") orderby access.count descending select access; Go through logs and keep only lines that are not comments. Parse each line into a LogEntry object. Go through logentries and keep only entries that are accesses by ulfar. Group ulfar’s accesses according to what page they correspond to. For each page, count the occurrences. Sort the pages ulfar has accessed according to access frequency
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有