[3/3] drill git commit: DRILL-1960: Automatic reallocation

2015-01-22 Thread smp
DRILL-1960: Automatic reallocation


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/a22b4724
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/a22b4724
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/a22b4724

Branch: refs/heads/master
Commit: a22b47243dbfdc5d956a5a7cf7964a6b9ae1418e
Parents: 839ae24
Author: Steven Phillips sphill...@maprtech.com
Authored: Fri Jan 16 16:30:21 2015 -0800
Committer: Steven Phillips sphill...@maprtech.com
Committed: Thu Jan 22 17:02:12 2015 -0800

--
 .../exec/store/hbase/HBaseRecordReader.java |  10 +-
 .../exec/store/hive/HiveFieldConverter.java |  66 ++--
 .../drill/exec/store/hive/HiveRecordReader.java |   6 +-
 .../exec/store/hive/HiveTextRecordReader.java   |   8 +-
 .../exec/store/mongo/MongoRecordReader.java |   9 +-
 .../main/codegen/templates/ComplexReaders.java  |   8 +-
 .../main/codegen/templates/ComplexWriters.java  |  19 +-
 .../codegen/templates/FixedValueVectors.java| 123 
 .../src/main/codegen/templates/MapWriters.java  |  10 +-
 .../codegen/templates/NullableValueVectors.java | 131 +++-
 .../codegen/templates/RepeatedValueVectors.java |  75 ++---
 .../src/main/codegen/templates/TypeHelper.java  |  17 +-
 .../templates/VariableLengthVectors.java|  86 ++
 .../drill/exec/expr/EvaluationVisitor.java  |  18 --
 .../drill/exec/expr/fn/DrillAggFuncHolder.java  |  17 +-
 .../expr/fn/DrillComplexWriterFuncHolder.java   |   6 +-
 .../physical/impl/aggregate/HashAggBatch.java   |  25 +-
 .../impl/aggregate/HashAggTemplate.java | 302 ---
 .../physical/impl/aggregate/HashAggregator.java |   6 +-
 .../impl/aggregate/StreamingAggBatch.java   |   6 -
 .../impl/aggregate/StreamingAggTemplate.java|  85 ++
 .../physical/impl/common/ChainedHashTable.java  |  71 ++---
 .../exec/physical/impl/common/HashTable.java|   2 +-
 .../physical/impl/common/HashTableTemplate.java |  91 ++
 .../impl/flatten/FlattenRecordBatch.java|   1 -
 .../exec/physical/impl/join/HashJoinBatch.java  |  88 +++---
 .../exec/physical/impl/join/HashJoinProbe.java  |   4 +-
 .../impl/join/HashJoinProbeTemplate.java|  82 ++---
 .../exec/physical/impl/join/JoinTemplate.java   |  25 +-
 .../exec/physical/impl/join/MergeJoinBatch.java |  16 +-
 .../MergingReceiverGeneratorBase.java   |   2 +-
 .../mergereceiver/MergingReceiverTemplate.java  |   2 +-
 .../impl/mergereceiver/MergingRecordBatch.java  |  22 +-
 .../OrderedPartitionProjectorTemplate.java  |   4 +-
 .../partitionsender/PartitionerTemplate.java|  47 +--
 .../impl/project/ProjectRecordBatch.java|  17 +-
 .../impl/project/ProjectorTemplate.java |  10 +-
 .../impl/svremover/CopierTemplate2.java |  16 +-
 .../impl/svremover/CopierTemplate4.java |  16 +-
 .../window/StreamingWindowFrameRecordBatch.java |   4 -
 .../window/StreamingWindowFrameTemplate.java|  14 +-
 .../impl/xsort/PriorityQueueCopierTemplate.java |   7 +-
 .../apache/drill/exec/record/TransferPair.java  |   2 +-
 .../columnreaders/FixedWidthRepeatedReader.java |   6 +-
 .../columnreaders/NullableBitReader.java|   6 +-
 .../columnreaders/VarLengthColumnReaders.java   |  28 +-
 .../columnreaders/VarLengthValuesColumn.java|   6 +-
 .../drill/exec/store/pojo/PojoRecordReader.java |   8 +-
 .../drill/exec/store/pojo/PojoWriter.java   |   2 +-
 .../apache/drill/exec/store/pojo/Writers.java   |  57 ++--
 .../exec/store/text/DrillTextRecordReader.java  |  20 +-
 .../drill/exec/vector/AllocationHelper.java |  15 +
 .../org/apache/drill/exec/vector/BitVector.java |  39 ++-
 .../org/apache/drill/exec/vector/CopyUtil.java  |  18 +-
 .../exec/vector/RepeatedFixedWidthVector.java   |   2 +-
 .../drill/exec/vector/RepeatedMutator.java  |   2 +-
 .../drill/exec/vector/VariableWidthVector.java  |   2 +-
 .../drill/exec/vector/complex/MapVector.java|  15 +-
 .../exec/vector/complex/RepeatedListVector.java |  30 +-
 .../exec/vector/complex/RepeatedMapVector.java  |  48 ++-
 .../complex/impl/RepeatedListReaderImpl.java|   4 +-
 .../complex/impl/RepeatedMapReaderImpl.java |   6 +-
 .../complex/impl/SingleMapReaderImpl.java   |   4 +-
 .../physical/impl/window/TestWindowFrame.java   |   4 +
 .../exec/vector/TestAdaptiveAllocation.java | 108 ---
 65 files changed, 770 insertions(+), 1236 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/drill/blob/a22b4724/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseRecordReader.java
--
diff --git 
a/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseRecordReader.java
 

[5/9] drill git commit: DRILL-2056: Remove sandbox folder from Drill source

2015-01-22 Thread adi
http://git-wip-us.apache.org/repos/asf/drill/blob/9a48e688/sandbox/web-frontend/lib/bootstrap/css/bootstrap.css
--
diff --git a/sandbox/web-frontend/lib/bootstrap/css/bootstrap.css 
b/sandbox/web-frontend/lib/bootstrap/css/bootstrap.css
deleted file mode 100644
index 9fa6f76..000
--- a/sandbox/web-frontend/lib/bootstrap/css/bootstrap.css
+++ /dev/null
@@ -1,5774 +0,0 @@
-/*!
- * Bootstrap v2.1.1
- *
- * Copyright 2012 Twitter, Inc
- * Licensed under the Apache License v2.0
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
- */
-
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-hgroup,
-nav,
-section {
-  display: block;
-}
-
-audio,
-canvas,
-video {
-  display: inline-block;
-  *display: inline;
-  *zoom: 1;
-}
-
-audio:not([controls]) {
-  display: none;
-}
-
-html {
-  font-size: 100%;
-  -webkit-text-size-adjust: 100%;
-  -ms-text-size-adjust: 100%;
-}
-
-a:focus {
-  outline: thin dotted #333;
-  outline: 5px auto -webkit-focus-ring-color;
-  outline-offset: -2px;
-}
-
-a:hover,
-a:active {
-  outline: 0;
-}
-
-sub,
-sup {
-  position: relative;
-  font-size: 75%;
-  line-height: 0;
-  vertical-align: baseline;
-}
-
-sup {
-  top: -0.5em;
-}
-
-sub {
-  bottom: -0.25em;
-}
-
-img {
-  width: auto\9;
-  height: auto;
-  max-width: 100%;
-  vertical-align: middle;
-  border: 0;
-  -ms-interpolation-mode: bicubic;
-}
-
-#map_canvas img {
-  max-width: none;
-}
-
-button,
-input,
-select,
-textarea {
-  margin: 0;
-  font-size: 100%;
-  vertical-align: middle;
-}
-
-button,
-input {
-  *overflow: visible;
-  line-height: normal;
-}
-
-button::-moz-focus-inner,
-input::-moz-focus-inner {
-  padding: 0;
-  border: 0;
-}
-
-button,
-input[type=button],
-input[type=reset],
-input[type=submit] {
-  cursor: pointer;
-  -webkit-appearance: button;
-}
-
-input[type=search] {
-  -webkit-box-sizing: content-box;
- -moz-box-sizing: content-box;
-  box-sizing: content-box;
-  -webkit-appearance: textfield;
-}
-
-input[type=search]::-webkit-search-decoration,
-input[type=search]::-webkit-search-cancel-button {
-  -webkit-appearance: none;
-}
-
-textarea {
-  overflow: auto;
-  vertical-align: top;
-}
-
-.clearfix {
-  *zoom: 1;
-}
-
-.clearfix:before,
-.clearfix:after {
-  display: table;
-  line-height: 0;
-  content: ;
-}
-
-.clearfix:after {
-  clear: both;
-}
-
-.hide-text {
-  font: 0/0 a;
-  color: transparent;
-  text-shadow: none;
-  background-color: transparent;
-  border: 0;
-}
-
-.input-block-level {
-  display: block;
-  width: 100%;
-  min-height: 30px;
-  -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
-  box-sizing: border-box;
-}
-
-body {
-  margin: 0;
-  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
-  font-size: 14px;
-  line-height: 20px;
-  color: #33;
-  background-color: #ff;
-}
-
-a {
-  color: #0088cc;
-  text-decoration: none;
-}
-
-a:hover {
-  color: #005580;
-  text-decoration: underline;
-}
-
-.img-rounded {
-  -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
-  border-radius: 6px;
-}
-
-.img-polaroid {
-  padding: 4px;
-  background-color: #fff;
-  border: 1px solid #ccc;
-  border: 1px solid rgba(0, 0, 0, 0.2);
-  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
- -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-}
-
-.img-circle {
-  -webkit-border-radius: 500px;
- -moz-border-radius: 500px;
-  border-radius: 500px;
-}
-
-.row {
-  margin-left: -20px;
-  *zoom: 1;
-}
-
-.row:before,
-.row:after {
-  display: table;
-  line-height: 0;
-  content: ;
-}
-
-.row:after {
-  clear: both;
-}
-
-[class*=span] {
-  float: left;
-  min-height: 1px;
-  margin-left: 20px;
-}
-
-.container,
-.navbar-static-top .container,
-.navbar-fixed-top .container,
-.navbar-fixed-bottom .container {
-  width: 940px;
-}
-
-.span12 {
-  width: 940px;
-}
-
-.span11 {
-  width: 860px;
-}
-
-.span10 {
-  width: 780px;
-}
-
-.span9 {
-  width: 700px;
-}
-
-.span8 {
-  width: 620px;
-}
-
-.span7 {
-  width: 540px;
-}
-
-.span6 {
-  width: 460px;
-}
-
-.span5 {
-  width: 380px;
-}
-
-.span4 {
-  width: 300px;
-}
-
-.span3 {
-  width: 220px;
-}
-
-.span2 {
-  width: 140px;
-}
-
-.span1 {
-  width: 60px;
-}
-
-.offset12 {
-  margin-left: 980px;
-}
-
-.offset11 {
-  margin-left: 900px;
-}
-
-.offset10 {
-  margin-left: 820px;
-}
-
-.offset9 {
-  margin-left: 740px;
-}
-
-.offset8 {
-  margin-left: 660px;
-}
-
-.offset7 {
-  margin-left: 580px;
-}
-
-.offset6 {
-  margin-left: 500px;
-}
-
-.offset5 {
-  margin-left: 420px;
-}
-
-.offset4 {
-  margin-left: 340px;
-}
-
-.offset3 {
-  margin-left: 260px;
-}
-
-.offset2 {
-  margin-left: 180px;
-}
-
-.offset1 {
-  margin-left: 100px;
-}
-
-.row-fluid {
-  width: 100%;
-  *zoom: 1;
-}
-
-.row-fluid:before,
-.row-fluid:after {
-  display: table;
-  

[4/9] drill git commit: DRILL-2056: Remove sandbox folder from Drill source

2015-01-22 Thread adi
http://git-wip-us.apache.org/repos/asf/drill/blob/9a48e688/sandbox/web-frontend/lib/bootstrap/css/bootstrap.min.css
--
diff --git a/sandbox/web-frontend/lib/bootstrap/css/bootstrap.min.css 
b/sandbox/web-frontend/lib/bootstrap/css/bootstrap.min.css
deleted file mode 100644
index 31d8b96..000
--- a/sandbox/web-frontend/lib/bootstrap/css/bootstrap.min.css
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * Bootstrap v2.1.1
- *
- * Copyright 2012 Twitter, Inc
- * Licensed under the Apache License v2.0
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
- 
*/article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin
 dotted #333;outline:5px auto 
-webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto\9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas
 
img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}input[type=search]{-webkit-box-sizing:content-box;-moz-b
 
ox-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:}.clearfix:after{clear:both}.hide-text{font:0/0
 
a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}body{margin:0;font-family:Helvetica
 
Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px;color:#333;background-color:#fff}a{color:#08c;text-decoration:none}a:hover{color:#005580;text-decoration:underline}.img-rounded{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.img-polaroid{padding:4px;background-color:#fff;border:1px
 solid #ccc;border:1px solid rgba(0,0,0,0.2);-webkit
 -box-shadow:0 1px 3px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 3px 
rgba(0,0,0,0.1);box-shadow:0 1px 3px 
rgba(0,0,0,0.1)}.img-circle{-webkit-border-radius:500px;-moz-border-radius:500px;border-radius:500px}.row{margin-left:-20px;*zoom:1}.row:before,.row:after{display:table;line-height:0;content:}.row:after{clear:both}[class*=span]{float:left;min-height:1px;margin-left:20px}.container,.navbar-static-top
 .container,.navbar-fixed-top .container,.navbar-fixed-bottom 
.container{width:940px}.span12{width:940px}.span11{width:860px}.span10{width:780px}.span9{width:700px}.span8{width:620px}.span7{width:540px}.span6{width:460px}.span5{width:380px}.span4{width:300px}.span3{width:220px}.span2{width:140px}.span1{width:60px}.offset12{margin-left:980px}.offset11{margin-left:900px}.offset10{margin-left:820px}.offset9{margin-left:740px}.offset8{margin-left:660px}.offset7{margin-left:580px}.offset6{margin-left:500px}.offset5{margin-left:420px}.offset4{margin-left:340px}.offset3{margin-left:260px}.off
 
set2{margin-left:180px}.offset1{margin-left:100px}.row-fluid{width:100%;*zoom:1}.row-fluid:before,.row-fluid:after{display:table;line-height:0;content:}.row-fluid:after{clear:both}.row-fluid
 
[class*=span]{display:block;float:left;width:100%;min-height:30px;margin-left:2.127659574468085%;*margin-left:2.074468085106383%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.row-fluid
 [class*=span]:first-child{margin-left:0}.row-fluid 
.span12{width:100%;*width:99.94680851063829%}.row-fluid 
.span11{width:91.48936170212765%;*width:91.43617021276594%}.row-fluid 
.span10{width:82.97872340425532%;*width:82.92553191489361%}.row-fluid 
.span9{width:74.46808510638297%;*width:74.41489361702126%}.row-fluid 
.span8{width:65.95744680851064%;*width:65.90425531914893%}.row-fluid 
.span7{width:57.44680851063829%;*width:57.39361702127659%}.row-fluid 
.span6{width:48.93617021276595%;*width:48.88297872340425%}.row-fluid 
.span5{width:40.42553191489362%;*width:40.37234042553192%}
 .row-fluid 
.span4{width:31.914893617021278%;*width:31.861702127659576%}.row-fluid 
.span3{width:23.404255319148934%;*width:23.351063829787233%}.row-fluid 
.span2{width:14.893617021276595%;*width:14.840425531914894%}.row-fluid 
.span1{width:6.382978723404255%;*width:6.329787234042553%}.row-fluid