当前位置: 首页>>代码示例>>Java>>正文


Java NullableDateVector类代码示例

本文整理汇总了Java中org.apache.drill.exec.vector.NullableDateVector的典型用法代码示例。如果您正苦于以下问题:Java NullableDateVector类的具体用法?Java NullableDateVector怎么用?Java NullableDateVector使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


NullableDateVector类属于org.apache.drill.exec.vector包,在下文中一共展示了NullableDateVector类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCopier

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
private Copier<?> getCopier(int jdbcType, int offset, ResultSet result, ValueVector v) {

    if (v instanceof NullableBigIntVector) {
      return new BigIntCopier(offset, result, (NullableBigIntVector.Mutator) v.getMutator());
    } else if (v instanceof NullableFloat4Vector) {
      return new Float4Copier(offset, result, (NullableFloat4Vector.Mutator) v.getMutator());
    } else if (v instanceof NullableFloat8Vector) {
      return new Float8Copier(offset, result, (NullableFloat8Vector.Mutator) v.getMutator());
    } else if (v instanceof NullableIntVector) {
      return new IntCopier(offset, result, (NullableIntVector.Mutator) v.getMutator());
    } else if (v instanceof NullableVarCharVector) {
      return new VarCharCopier(offset, result, (NullableVarCharVector.Mutator) v.getMutator());
    } else if (v instanceof NullableVarBinaryVector) {
      return new VarBinaryCopier(offset, result, (NullableVarBinaryVector.Mutator) v.getMutator());
    } else if (v instanceof NullableDateVector) {
      return new DateCopier(offset, result, (NullableDateVector.Mutator) v.getMutator());
    } else if (v instanceof NullableTimeVector) {
      return new TimeCopier(offset, result, (NullableTimeVector.Mutator) v.getMutator());
    } else if (v instanceof NullableTimeStampVector) {
      return new TimeStampCopier(offset, result, (NullableTimeStampVector.Mutator) v.getMutator());
    } else if (v instanceof NullableBitVector) {
      return new BitCopier(offset, result, (NullableBitVector.Mutator) v.getMutator());
    }

    throw new IllegalArgumentException("Unknown how to handle vector.");
  }
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:27,代码来源:JdbcRecordReader.java

示例2: CorruptionDetectingNullableDateReader

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
CorruptionDetectingNullableDateReader(ParquetRecordReader parentReader, int allocateSize,
                                      ColumnDescriptor descriptor, ColumnChunkMetaData columnChunkMetaData,
                                      boolean fixedLength, NullableDateVector v, SchemaElement schemaElement)
    throws ExecutionSetupException {
  super(parentReader, allocateSize, descriptor, columnChunkMetaData, fixedLength, v, schemaElement);
  dateVector = (NullableDateVector) v;
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:8,代码来源:NullableFixedByteAlignedReaders.java

示例3: NullableDateReader

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
NullableDateReader(ParquetRecordReader parentReader, int allocateSize, ColumnDescriptor descriptor, ColumnChunkMetaData columnChunkMetaData,
                   boolean fixedLength, ValueVector v, SchemaElement schemaElement) throws ExecutionSetupException {
  super(parentReader, allocateSize, descriptor, columnChunkMetaData, fixedLength, v, schemaElement);
  dateVector = (NullableDateVector) v;
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:6,代码来源:NullableFixedByteAlignedReaders.java

示例4: DateCopier

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
public DateCopier(int columnIndex, ResultSet result, NullableDateVector.Mutator mutator) {
  super(columnIndex, result, mutator);
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:4,代码来源:JdbcRecordReader.java

示例5: setSafeValue

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
@Override
public void setSafeValue(ObjectInspector oi, Object hiveFieldValue, ValueVector outputVV, int outputIndex) {
  final java.sql.Date value = ((DateObjectInspector)oi).getPrimitiveJavaObject(hiveFieldValue);
  final DateTime date = new DateTime(value.getTime()).withZoneRetainFields(DateTimeZone.UTC);
  ((NullableDateVector) outputVV).getMutator().setSafe(outputIndex, date.getMillis());
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:7,代码来源:HiveFieldConverter.java

示例6: NullableDateReader

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
NullableDateReader(ParquetRecordReader parentReader, int allocateSize, ColumnDescriptor descriptor, ColumnChunkMetaData columnChunkMetaData,
                   boolean fixedLength, NullableDateVector v, SchemaElement schemaElement) throws ExecutionSetupException {
  super(parentReader, allocateSize, descriptor, columnChunkMetaData, fixedLength, v, schemaElement);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:5,代码来源:NullableFixedByteAlignedReaders.java

示例7: NullableCorruptDateReader

import org.apache.drill.exec.vector.NullableDateVector; //导入依赖的package包/类
NullableCorruptDateReader(ParquetRecordReader parentReader, int allocateSize, ColumnDescriptor descriptor, ColumnChunkMetaData columnChunkMetaData,
                   boolean fixedLength, NullableDateVector v, SchemaElement schemaElement) throws ExecutionSetupException {
  super(parentReader, allocateSize, descriptor, columnChunkMetaData, fixedLength, v, schemaElement);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:5,代码来源:NullableFixedByteAlignedReaders.java


注:本文中的org.apache.drill.exec.vector.NullableDateVector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。