processing/src/main/java/org/apache/druid/query/aggregation/last/NumericLastVectorAggregator.java
/**
   *
   * @param buf         byte buffer storing the byte array representation of the aggregate
   * @param position    offset within the byte buffer at which the current aggregate value is stored
   * @param time        the time to be updated in the buffer as the last time
   * @param index       the index of the vectorized vector which is the last value
   */
@param buf         byte buffer storing the byte array representation of the aggregate
@param position    offset within the byte buffer at which the current aggregate value is stored
@param time        the time to be updated in the buffer as the last time
@param index       the index of the vectorized vector which is the last value
@param buf byte buffer storing the byte array representation of the aggregate @param position offset within the byte buffer at which the current aggregate value is stored @param time the time to be updated in the buffer as the last time @param index the index of the vectorized vector which is the last value
void updateTimeWithValue(ByteBuffer buf, int position, long time, int index)
  {
    buf.putLong(position, time);
    buf.put(position + NULL_OFFSET, NullHandling.IS_NOT_NULL_BYTE);
    putValue(buf, position + VALUE_OFFSET, index);
  }
void updateTimeWithValue ( ByteBuffer buf , int position , long time , int index ) { buf . putLong ( position , time ) ; buf . put ( position + NULL_OFFSET , NullHandling . IS_NOT_NULL_BYTE ) ; putValue ( buf , position + VALUE_OFFSET , index ) ; }
@param buf         byte buffer storing the byte array representation of the aggregate
 @param position    offset within the byte buffer at which the current aggregate value is stored
 @param time        the time to be updated in the buffer as the last time
 @param index       the index of the vectorized vector which is the last value
@param buf byte buffer storing the byte array representation of the aggregate @param position offset within the byte buffer at which the current aggregate value is stored @param time the time to be updated in the buffer as the last time @param index the index of the vectorized vector which is the last value