Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [35/53] [abbrv] git commit: Separate allocate and load methods. rename setRecordCount to setValueCount add setGroupAndValueCount to RepeatedVectors. add a number of marker/cross-inheritance interfaces.


Copy link to this message
-
Re: [35/53] [abbrv] git commit: Separate allocate and load methods. rename setRecordCount to setValueCount add setGroupAndValueCount to RepeatedVectors. add a number of marker/cross-inheritance interfaces.
On Fri, Jul 19, 2013 at 6:57 PM, <[EMAIL PROTECTED]> wrote:

> Separate allocate and load methods.
> rename setRecordCount to setValueCount
> add setGroupAndValueCount to RepeatedVectors.
> add a number of marker/cross-inheritance interfaces.
>
>
> Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
> Commit:
> http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/9ca9eb9b
> Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/9ca9eb9b
> Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/9ca9eb9b
>
> Branch: refs/heads/master
> Commit: 9ca9eb9b3d88e86e28d1b688d9cd943e6a7f08df
> Parents: 36793bb
> Author: Jacques Nadeau <[EMAIL PROTECTED]>
> Authored: Mon Jul 15 10:50:07 2013 -0700
> Committer: Jacques Nadeau <[EMAIL PROTECTED]>
> Committed: Mon Jul 15 13:13:59 2013 -0700
>
> ----------------------------------------------------------------------
>  .../templates/FixedValueVectors.java            | 118 +++++---
>  .../templates/NullableValueVectors.java         | 220 ++++++++++-----
>  .../templates/RepeatedValueVectors.java         | 273 ++++++++++++++-----
>  .../templates/VariableLengthVectors.java        | 177 +++++++-----
>  .../exec/physical/config/MockRecordReader.java  |  37 ++-
>  .../drill/exec/record/MaterializedField.java    |  16 ++
>  .../drill/exec/record/RecordBatchLoader.java    |   7 +-
>  .../apache/drill/exec/record/WritableBatch.java |   3 +-
>  .../drill/exec/store/JSONRecordReader.java      |   4 +-
>  .../apache/drill/exec/store/VectorHolder.java   |  21 +-
>  .../drill/exec/vector/BaseDataValueVector.java  |  47 ++++
>  .../drill/exec/vector/BaseValueVector.java      |  38 +++
>  .../org/apache/drill/exec/vector/BitVector.java | 112 +++++---
>  .../apache/drill/exec/vector/ByteHolder.java    |  12 +
>  .../drill/exec/vector/FixedWidthVector.java     |  23 ++
>  .../drill/exec/vector/NonRepeatedMutator.java   |   7 +
>  .../exec/vector/RepeatedFixedWidthVector.java   |  22 ++
>  .../vector/RepeatedVariableWidthVector.java     |  24 ++
>  .../apache/drill/exec/vector/ValueVector.java   | 179 ++++--------
>  .../drill/exec/vector/VariableWidthVector.java  |  29 ++
>  .../apache/drill/exec/work/foreman/Foreman.java |   5 +-
>  .../physical/impl/TestSimpleFragmentRun.java    |   2 +-
>  .../exec/record/vector/TestValueVector.java     |  81 +++---
>  .../drill/exec/store/JSONRecordReaderTest.java  |   2 +-
>  24 files changed, 995 insertions(+), 464 deletions(-)
> ----------------------------------------------------------------------
>
>
>
> http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/9ca9eb9b/sandbox/prototype/exec/java-exec/src/main/codegen/ValueVectors/templates/FixedValueVectors.java
> ----------------------------------------------------------------------
> diff --git
> a/sandbox/prototype/exec/java-exec/src/main/codegen/ValueVectors/templates/FixedValueVectors.java
> b/sandbox/prototype/exec/java-exec/src/main/codegen/ValueVectors/templates/FixedValueVectors.java
> index 09dd5d8..7583d9f 100644
> ---
> a/sandbox/prototype/exec/java-exec/src/main/codegen/ValueVectors/templates/FixedValueVectors.java
> +++
> b/sandbox/prototype/exec/java-exec/src/main/codegen/ValueVectors/templates/FixedValueVectors.java
> @@ -12,6 +12,7 @@ import org.apache.drill.exec.memory.BufferAllocator;
>  import org.apache.drill.exec.proto.UserBitShared.FieldMetadata;
>  import org.apache.drill.exec.record.DeadBuf;
>  import org.apache.drill.exec.record.MaterializedField;
> +import org.apache.drill.exec.vector.BaseValueVector;
>  import org.apache.drill.exec.vector.MsgPack2Vector;
>
>  import java.util.Random;
> @@ -26,71 +27,100 @@ import java.util.Random;
>   * NB: this class is automatically generated from ValueVectorTypes.tdd
> using FreeMarker.
>   */
>  @SuppressWarnings("unused")
> -public final class ${minor.class}Vector extends ValueVector {
> +public final class ${minor.class}Vector extends BaseDataValueVector
> implements FixedWidthVector{
>    static final org.slf4j.Logger logger > org.slf4j.LoggerFactory.getLogger(${minor.class}Vector.class);