{"comment":{"url":"https://api.github.com/repos/adeneche/incubator-drill/comments/12850774","html_url":"https://github.com/adeneche/incubator-drill/commit/cab73cd1a50163dd25fe0f9c55c264780ea3616d#commitcomment-12850774","id":12850774,"user":{"login":"amansinha100","id":6034475,"avatar_url":"https://avatars.githubusercontent.com/u/6034475?v=3","gravatar_id":"","url":"https://api.github.com/users/amansinha100","html_url":"https://github.com/amansinha100","followers_url":"https://api.github.com/users/amansinha100/followers","following_url":"https://api.github.com/users/amansinha100/following{/other_user}","gists_url":"https://api.github.com/users/amansinha100/gists{/gist_id}","starred_url":"https://api.github.com/users/amansinha100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amansinha100/subscriptions","organizations_url":"https://api.github.com/users/amansinha100/orgs","repos_url":"https://api.github.com/users/amansinha100/repos","events_url":"https://api.github.com/users/amansinha100/events{/privacy}","received_events_url":"https://api.github.com/users/amansinha100/received_events","type":"User","site_admin":false},"position":10,"line":43,"path":"exec/java-exec/src/main/java/org/apache/drill/exec/expr/ValueVectorWriteExpression.java","commit_id":"cab73cd1a50163dd25fe0f9c55c264780ea3616d","created_at":"2015-08-24T06:48:02Z","updated_at":"2015-08-24T06:48:02Z","body":"In the FixedWidthVector classes, the zeroVector() method sets the vector elements to null by calling  netty's ByteBuf.setZero() method.  Note that it does not shrink/release the buffer.  This would be very fast compared to setting individual elements to null in our generated code. \r\n  @Override\r\n  public void zeroVector() {\r\n    data.setZero(0, data.capacity());\r\n  }\r\n\r\nI haven't seen a similar method for the variable length vectors but if we think this would work then one could add a similar interface there.  What do you think ?"}}