GitHub PullRequestReviewCommentEvent at 2014-12-25 06:47:01
Repository: fizteh-java-2014
Actor: vpavlenko
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/22268448","id":22268448,"diff_hunk":"@@ -0,0 +1,348 @@\n+package ru.fizteh.fivt.students.ilin_ilia.parallel.database;\n+\n+import ru.fizteh.fivt.storage.structured.ColumnFormatException;\n+import ru.fizteh.fivt.storage.structured.Storeable;\n+import ru.fizteh.fivt.storage.structured.Table;\n+import ru.fizteh.fivt.storage.structured.TableProvider;\n+import ru.fizteh.fivt.students.ilin_ilia.parallel.dbexceptions.TableException;\n+import ru.fizteh.fivt.students.ilin_ilia.parallel.utils.Utils;\n+\n+import java.io.*;\n+import java.nio.file.Path;\n+import java.nio.file.Paths;\n+import java.text.ParseException;\n+import java.util.HashMap;\n+import java.util.LinkedList;\n+import java.util.List;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+import java.util.concurrent.locks.ReadWriteLock;\n+import java.util.concurrent.locks.ReentrantReadWriteLock;\n+import java.util.stream.Collectors;\n+\n+public class MyTable implements Table {\n+    private Path name;\n+    private int changesAfterCommit;\n+    private List<String> commitKeys;\n+    /**\n+     * inputFiles contains files which have read from db and won't change after commit.\n+     * changingFiles contains keys and values which will add during the program.\n+     *\n+     * At the beginning of the programme all of them contain the same keys and values.\n+     *\n+     * isExists shows us file has been created before the program or not.\n+     */\n+    private HashMap<DirFile, FileMap> inputFiles;\n+    private ThreadLocal<HashMap<DirFile, FileMap>> changingFiles = ThreadLocal.withInitial(HashMap::new);\n+    public static final String ENCODING = \"UTF-8\";\n+    public static final int MAX_DIRECTORIES_AMOUNT  = 16;\n+    public static final int MAX_FILES_AMOUNT  = 16;\n+    private Class[] columnTypes;\n+    private boolean isExists;\n+    private TableProvider containsTableProvider;\n+    /**\n+     * If there are some uncommitted changes and we stop the programme\n+     * this flag shows if we have printed the message about uncommitted\n+     * changes.\n+     * It's false if we printed it or there is no uncommitted changes.\n+     * isInvitated can be true only in current table.\n+     */\n+    private boolean isInvitated;","path":"src/ru/fizteh/fivt/students/ilin_ilia/parallel/database/MyTable.java","position":49,"original_position":49,"commit_id":"f676bf521ed87f7d47a18cbaf202cb6302aa129c","original_commit_id":"f676bf521ed87f7d47a18cbaf202cb6302aa129c","user":{"login":"vpavlenko","id":1491908,"avatar_url":"https://avatars.githubusercontent.com/u/1491908?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavlenko","html_url":"https://github.com/vpavlenko","followers_url":"https://api.github.com/users/vpavlenko/followers","following_url":"https://api.github.com/users/vpavlenko/following{/other_user}","gists_url":"https://api.github.com/users/vpavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavlenko/subscriptions","organizations_url":"https://api.github.com/users/vpavlenko/orgs","repos_url":"https://api.github.com/users/vpavlenko/repos","events_url":"https://api.github.com/users/vpavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/vpavlenko/received_events","type":"User","site_admin":false},"body":"Нет. Этот функционал не присущ базе как библиотечному классу, это уже внешняя логика. Вынесите в мэин или в команды интерпретатора","created_at":"2014-12-25T06:47:01Z","updated_at":"2014-12-25T06:47:01Z","html_url":"https://github.com/dkomanov/fizteh-java-2014/pull/427#discussion_r22268448","pull_request_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/22268448"},"html":{"href":"https://github.com/dkomanov/fizteh-java-2014/pull/427#discussion_r22268448"},"pull_request":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427","id":25222617,"html_url":"https://github.com/dkomanov/fizteh-java-2014/pull/427","diff_url":"https://github.com/dkomanov/fizteh-java-2014/pull/427.diff","patch_url":"https://github.com/dkomanov/fizteh-java-2014/pull/427.patch","issue_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/427","number":427,"state":"open","locked":false,"title":"Ильин Илья 397, JUnit, Storeable, Parallel","user":{"login":"TheronSG","id":8759529,"avatar_url":"https://avatars.githubusercontent.com/u/8759529?v=3","gravatar_id":"","url":"https://api.github.com/users/TheronSG","html_url":"https://github.com/TheronSG","followers_url":"https://api.github.com/users/TheronSG/followers","following_url":"https://api.github.com/users/TheronSG/following{/other_user}","gists_url":"https://api.github.com/users/TheronSG/gists{/gist_id}","starred_url":"https://api.github.com/users/TheronSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheronSG/subscriptions","organizations_url":"https://api.github.com/users/TheronSG/orgs","repos_url":"https://api.github.com/users/TheronSG/repos","events_url":"https://api.github.com/users/TheronSG/events{/privacy}","received_events_url":"https://api.github.com/users/TheronSG/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-29T12:50:24Z","updated_at":"2014-12-25T06:47:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2af44cc4264060d0de623f1b698a9771a8e2746c","assignee":{"login":"vpavlenko","id":1491908,"avatar_url":"https://avatars.githubusercontent.com/u/1491908?v=3","gravatar_id":"","url":"https://api.github.com/users/vpavlenko","html_url":"https://github.com/vpavlenko","followers_url":"https://api.github.com/users/vpavlenko/followers","following_url":"https://api.github.com/users/vpavlenko/following{/other_user}","gists_url":"https://api.github.com/users/vpavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavlenko/subscriptions","organizations_url":"https://api.github.com/users/vpavlenko/orgs","repos_url":"https://api.github.com/users/vpavlenko/repos","events_url":"https://api.github.com/users/vpavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/vpavlenko/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427/commits","review_comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427/comments","review_comment_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/427/comments","statuses_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/f676bf521ed87f7d47a18cbaf202cb6302aa129c","head":{"label":"TheronSG:master","ref":"master","sha":"f676bf521ed87f7d47a18cbaf202cb6302aa129c","user":{"login":"TheronSG","id":8759529,"avatar_url":"https://avatars.githubusercontent.com/u/8759529?v=3","gravatar_id":"","url":"https://api.github.com/users/TheronSG","html_url":"https://github.com/TheronSG","followers_url":"https://api.github.com/users/TheronSG/followers","following_url":"https://api.github.com/users/TheronSG/following{/other_user}","gists_url":"https://api.github.com/users/TheronSG/gists{/gist_id}","starred_url":"https://api.github.com/users/TheronSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheronSG/subscriptions","organizations_url":"https://api.github.com/users/TheronSG/orgs","repos_url":"https://api.github.com/users/TheronSG/repos","events_url":"https://api.github.com/users/TheronSG/events{/privacy}","received_events_url":"https://api.github.com/users/TheronSG/received_events","type":"User","site_admin":false},"repo":{"id":27301726,"name":"fizteh-java-2014","full_name":"TheronSG/fizteh-java-2014","owner":{"login":"TheronSG","id":8759529,"avatar_url":"https://avatars.githubusercontent.com/u/8759529?v=3","gravatar_id":"","url":"https://api.github.com/users/TheronSG","html_url":"https://github.com/TheronSG","followers_url":"https://api.github.com/users/TheronSG/followers","following_url":"https://api.github.com/users/TheronSG/following{/other_user}","gists_url":"https://api.github.com/users/TheronSG/gists{/gist_id}","starred_url":"https://api.github.com/users/TheronSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheronSG/subscriptions","organizations_url":"https://api.github.com/users/TheronSG/orgs","repos_url":"https://api.github.com/users/TheronSG/repos","events_url":"https://api.github.com/users/TheronSG/events{/privacy}","received_events_url":"https://api.github.com/users/TheronSG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheronSG/fizteh-java-2014","description":"","fork":true,"url":"https://api.github.com/repos/TheronSG/fizteh-java-2014","forks_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/forks","keys_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/teams","hooks_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/hooks","issue_events_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/issues/events{/number}","events_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/events","assignees_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/assignees{/user}","branches_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/branches{/branch}","tags_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/tags","blobs_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/statuses/{sha}","languages_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/languages","stargazers_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/stargazers","contributors_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/contributors","subscribers_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/subscribers","subscription_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/subscription","commits_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/issues/comments/{number}","contents_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/contents/{+path}","compare_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/merges","archive_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/downloads","issues_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/issues{/number}","pulls_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/pulls{/number}","milestones_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/milestones{/number}","notifications_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/labels{/name}","releases_url":"https://api.github.com/repos/TheronSG/fizteh-java-2014/releases{/id}","created_at":"2014-11-29T12:40:50Z","updated_at":"2014-12-24T22:19:38Z","pushed_at":"2014-12-24T22:19:38Z","git_url":"git://github.com/TheronSG/fizteh-java-2014.git","ssh_url":"git@github.com:TheronSG/fizteh-java-2014.git","clone_url":"https://github.com/TheronSG/fizteh-java-2014.git","svn_url":"https://github.com/TheronSG/fizteh-java-2014","homepage":null,"size":14042,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dkomanov:master","ref":"master","sha":"1fac941867463d8711ad0951ddbb05fdd153dd7d","user":{"login":"dkomanov","id":1158662,"avatar_url":"https://avatars.githubusercontent.com/u/1158662?v=3","gravatar_id":"","url":"https://api.github.com/users/dkomanov","html_url":"https://github.com/dkomanov","followers_url":"https://api.github.com/users/dkomanov/followers","following_url":"https://api.github.com/users/dkomanov/following{/other_user}","gists_url":"https://api.github.com/users/dkomanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkomanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkomanov/subscriptions","organizations_url":"https://api.github.com/users/dkomanov/orgs","repos_url":"https://api.github.com/users/dkomanov/repos","events_url":"https://api.github.com/users/dkomanov/events{/privacy}","received_events_url":"https://api.github.com/users/dkomanov/received_events","type":"User","site_admin":false},"repo":{"id":23866876,"name":"fizteh-java-2014","full_name":"dkomanov/fizteh-java-2014","owner":{"login":"dkomanov","id":1158662,"avatar_url":"https://avatars.githubusercontent.com/u/1158662?v=3","gravatar_id":"","url":"https://api.github.com/users/dkomanov","html_url":"https://github.com/dkomanov","followers_url":"https://api.github.com/users/dkomanov/followers","following_url":"https://api.github.com/users/dkomanov/following{/other_user}","gists_url":"https://api.github.com/users/dkomanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkomanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkomanov/subscriptions","organizations_url":"https://api.github.com/users/dkomanov/orgs","repos_url":"https://api.github.com/users/dkomanov/repos","events_url":"https://api.github.com/users/dkomanov/events{/privacy}","received_events_url":"https://api.github.com/users/dkomanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkomanov/fizteh-java-2014","description":"","fork":false,"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014","forks_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/forks","keys_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/teams","hooks_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/hooks","issue_events_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/events{/number}","events_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/events","assignees_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/assignees{/user}","branches_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/branches{/branch}","tags_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/tags","blobs_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/{sha}","languages_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/languages","stargazers_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/stargazers","contributors_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/contributors","subscribers_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/subscribers","subscription_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/subscription","commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/comments/{number}","contents_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/contents/{+path}","compare_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/merges","archive_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/downloads","issues_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues{/number}","pulls_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls{/number}","milestones_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/milestones{/number}","notifications_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/labels{/name}","releases_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/releases{/id}","created_at":"2014-09-10T08:32:49Z","updated_at":"2014-12-24T19:47:22Z","pushed_at":"2014-12-24T19:47:21Z","git_url":"git://github.com/dkomanov/fizteh-java-2014.git","ssh_url":"git@github.com:dkomanov/fizteh-java-2014.git","clone_url":"https://github.com/dkomanov/fizteh-java-2014.git","svn_url":"https://github.com/dkomanov/fizteh-java-2014","homepage":null,"size":34584,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"open_issues_count":53,"forks":86,"open_issues":53,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427"},"html":{"href":"https://github.com/dkomanov/fizteh-java-2014/pull/427"},"issue":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/427"},"comments":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/f676bf521ed87f7d47a18cbaf202cb6302aa129c"}}}}