コード例 #1
0
        private IVector getDolphinDBVectorBySystemType(Type stype, int rowCount)
        {
            IVector v = null;

            if (stype == Type.GetType("System.Boolean"))
            {
                v = new BasicBooleanVector(rowCount);
            }
            else if (stype == Type.GetType("System.Byte"))
            {
                v = new BasicByteVector(rowCount);
            }
            else if (stype == Type.GetType("System.Double"))
            {
                v = new BasicDoubleVector(rowCount);
            }
            else if (stype == Type.GetType("System.DateTime"))
            {
                v = new BasicDateTimeVector(rowCount);
            }
            else if (stype == Type.GetType("System.TimeSpan"))
            {
                v = new BasicTimeVector(rowCount);
            }
            else if (stype == Type.GetType("System.Int16"))
            {
                v = new BasicShortVector(rowCount);
            }
            else if (stype == Type.GetType("System.Int32"))
            {
                v = new BasicIntVector(rowCount);
            }
            else if (stype == Type.GetType("System.Int64"))
            {
                v = new BasicLongVector(rowCount);
            }
            else
            {
                v = new BasicStringVector(rowCount);
            }
            return(v);
        }
コード例 #2
0
        public virtual IVector getSubVector(int[] indices)
        {
            IVector iv = new BasicIntVector(1);

            return(iv);
        }