Package org.apache.drill.exec.vector.complex.writer

Examples of org.apache.drill.exec.vector.complex.writer.FieldWriter


 
 
 
  private static final MajorType DECIMAL38DENSE_TYPE = Types.optional(MinorType.DECIMAL38DENSE);
  public Decimal38DenseWriter decimal38Dense(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDecimal38DenseVector vector = container.addOrGet(name, DECIMAL38DENSE_TYPE, NullableDecimal38DenseVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableDecimal38DenseWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here


 
 
 
  private static final MajorType DECIMAL38SPARSE_TYPE = Types.optional(MinorType.DECIMAL38SPARSE);
  public Decimal38SparseWriter decimal38Sparse(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDecimal38SparseVector vector = container.addOrGet(name, DECIMAL38SPARSE_TYPE, NullableDecimal38SparseVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableDecimal38SparseWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType DECIMAL28SPARSE_TYPE = Types.optional(MinorType.DECIMAL28SPARSE);
  public Decimal28SparseWriter decimal28Sparse(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDecimal28SparseVector vector = container.addOrGet(name, DECIMAL28SPARSE_TYPE, NullableDecimal28SparseVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableDecimal28SparseWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType VARBINARY_TYPE = Types.optional(MinorType.VARBINARY);
  public VarBinaryWriter varBinary(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableVarBinaryVector vector = container.addOrGet(name, VARBINARY_TYPE, NullableVarBinaryVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableVarBinaryWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType VARCHAR_TYPE = Types.optional(MinorType.VARCHAR);
  public VarCharWriter varChar(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableVarCharVector vector = container.addOrGet(name, VARCHAR_TYPE, NullableVarCharVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableVarCharWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType VAR16CHAR_TYPE = Types.optional(MinorType.VAR16CHAR);
  public Var16CharWriter var16Char(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableVar16CharVector vector = container.addOrGet(name, VAR16CHAR_TYPE, NullableVar16CharVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableVar16CharWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType BIT_TYPE = Types.optional(MinorType.BIT);
  public BitWriter bit(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableBitVector vector = container.addOrGet(name, BIT_TYPE, NullableBitVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableBitWriterImpl(vector, this);
      writer.setPosition(currentChildIndex);
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType TIME_TYPE = Types.optional(MinorType.TIME);
  public TimeWriter time(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableTimeVector vector = container.addOrGet(name, TIME_TYPE, NullableTimeVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableTimeWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType INTERVALYEAR_TYPE = Types.optional(MinorType.INTERVALYEAR);
  public IntervalYearWriter intervalYear(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableIntervalYearVector vector = container.addOrGet(name, INTERVALYEAR_TYPE, NullableIntervalYearVector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableIntervalYearWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType DECIMAL9_TYPE = Types.optional(MinorType.DECIMAL9);
  public Decimal9Writer decimal9(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDecimal9Vector vector = container.addOrGet(name, DECIMAL9_TYPE, NullableDecimal9Vector.class);
      AllocationHelper.allocate(vector, 1000, 100, 10);
      writer = new NullableDecimal9WriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.vector.complex.writer.FieldWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.