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

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


 
 
 
  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);
      vector.allocateNewSafe();
      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);
      vector.allocateNewSafe();
      writer = new NullableDecimal9WriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType BIGINT_TYPE = Types.optional(MinorType.BIGINT);
  public BigIntWriter bigInt(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableBigIntVector vector = container.addOrGet(name, BIGINT_TYPE, NullableBigIntVector.class);
      vector.allocateNewSafe();
      writer = new NullableBigIntWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType UINT8_TYPE = Types.optional(MinorType.UINT8);
  public UInt8Writer uInt8(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableUInt8Vector vector = container.addOrGet(name, UINT8_TYPE, NullableUInt8Vector.class);
      vector.allocateNewSafe();
      writer = new NullableUInt8WriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType FLOAT8_TYPE = Types.optional(MinorType.FLOAT8);
  public Float8Writer float8(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableFloat8Vector vector = container.addOrGet(name, FLOAT8_TYPE, NullableFloat8Vector.class);
      vector.allocateNewSafe();
      writer = new NullableFloat8WriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType DATE_TYPE = Types.optional(MinorType.DATE);
  public DateWriter date(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDateVector vector = container.addOrGet(name, DATE_TYPE, NullableDateVector.class);
      vector.allocateNewSafe();
      writer = new NullableDateWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType TIMESTAMP_TYPE = Types.optional(MinorType.TIMESTAMP);
  public TimeStampWriter timeStamp(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableTimeStampVector vector = container.addOrGet(name, TIMESTAMP_TYPE, NullableTimeStampVector.class);
      vector.allocateNewSafe();
      writer = new NullableTimeStampWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType DECIMAL18_TYPE = Types.optional(MinorType.DECIMAL18);
  public Decimal18Writer decimal18(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableDecimal18Vector vector = container.addOrGet(name, DECIMAL18_TYPE, NullableDecimal18Vector.class);
      vector.allocateNewSafe();
      writer = new NullableDecimal18WriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType TIMESTAMPTZ_TYPE = Types.optional(MinorType.TIMESTAMPTZ);
  public TimeStampTZWriter timeStampTZ(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableTimeStampTZVector vector = container.addOrGet(name, TIMESTAMPTZ_TYPE, NullableTimeStampTZVector.class);
      vector.allocateNewSafe();
      writer = new NullableTimeStampTZWriterImpl(vector, this);
      writer.setPosition(idx());
      fields.put(name, writer);
    }
    return writer;
  }
View Full Code Here

 
 
 
  private static final MajorType INTERVALDAY_TYPE = Types.optional(MinorType.INTERVALDAY);
  public IntervalDayWriter intervalDay(String name){
    FieldWriter writer = fields.get(name);
    if(writer == null){
      NullableIntervalDayVector vector = container.addOrGet(name, INTERVALDAY_TYPE, NullableIntervalDayVector.class);
      vector.allocateNewSafe();
      writer = new NullableIntervalDayWriterImpl(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.