public static TimeStampMilliVector vectorFor(BufferAllocator allocator,String name,Date[] data) {
        TimeStampMilliVector float4Vector = new TimeStampMilliVector(name,allocator);
        float4Vector.allocateNew(data.length);
        for(int i = 0; i < data.length; i++) {
            float4Vector.setSafe(i,data[i].getTime());
        }

        float4Vector.setValueCount(data.length);

        return float4Vector;
    }
public static TimeStampMilliVector vectorFor ( BufferAllocator allocator , String name , Date [ ] data ) { TimeStampMilliVector float4Vector = new TimeStampMilliVector ( name , allocator ) ; float4Vector . allocateNew ( data . length ) ; for ( int i = 0 ; i < data . length ; i ++ ) { float4Vector . setSafe ( i , data [ i ] . getTime ( ) ) ; } float4Vector . setValueCount ( data . length ) ; return float4Vector ; }
@param allocator
@param name
@param data
@return