@Override final long getLong(int rowId) { return accessor.get(rowId); } }
/** * Same as {@link #set(int, TimeStampMicroTZHolder)} except that it handles the * case when index is greater than or equal to existing * value capacity {@link #getValueCapacity()}. * * @param index position of element * @param holder data holder for value of element */ public void setSafe(int index, TimeStampMicroTZHolder holder) { handleSafe(index); set(index, holder); }
timeStampMicroTZVector.set(index,value);
public void copyAsValue(TimeStampMicroTZWriter writer){ TimeStampMicroTZWriterImpl impl = (TimeStampMicroTZWriterImpl) writer; impl.vector.copyFromSafe(idx(), impl.idx(), vector); }
@Override public FieldVector getNewVector( String name, FieldType fieldType, BufferAllocator allocator, CallBack schemaChangeCallback) { return new TimeStampMicroTZVector(name, fieldType, allocator); }
@Override public void clear() { vector.clear(); }
@Override public void close() { vector.close(); }
@Override public void allocate() { vector.allocateNew(); }
/** * Same as {@link #set(int, NullableTimeStampMicroTZHolder)} except that it handles the * case when index is greater than or equal to existing * value capacity {@link #getValueCapacity()}. * * @param index position of element * @param holder nullable data holder for value of element */ public void setSafe(int index, NullableTimeStampMicroTZHolder holder) throws IllegalArgumentException { handleSafe(index); set(index, holder); }
public void copyAsField(String name, StructWriter writer){ TimeStampMicroTZWriterImpl impl = (TimeStampMicroTZWriterImpl) writer.timeStampMicroTZ(name); impl.vector.copyFromSafe(idx(), impl.idx(), vector); }
/** * Construct a TransferPair comprising of this and and a target vector of * the same type. * * @param ref name of the target vector * @param allocator allocator for the target vector * @return {@link TransferPair} */ @Override public TransferPair getTransferPair(String ref, BufferAllocator allocator) { TimeStampMicroTZVector to = new TimeStampMicroTZVector(ref, field.getFieldType(), allocator); return new TransferImpl(to); }
@Override final long getLong(int rowId) { return accessor.get(rowId); } }
public void read(NullableTimeStampMicroTZHolder h){ vector.get(idx(), h); }
break; case TIMESTAMPMICROTZ: generator.writeNumber(TimeStampMicroTZVector.get(buffer, index)); break; case TIMESTAMPNANOTZ:
return timeStampMicroTZVector.get(row);