Exemple #1
0
        public static DataFrameColumnBase Clone(DataFrameColumnBase source)
        {
            switch (DataFrameTypeHelper.GetDataFrameType(source.DataType))
            {
            case DataFrameType.Object: return(new DataFrameColumn <Object>((DataFrameColumn <Object>)(source)));

            case DataFrameType.Decimal: return(new DataFrameColumn <Decimal>((DataFrameColumn <Decimal>)(source)));

            case DataFrameType.Double: return(new DataFrameColumn <Double>((DataFrameColumn <Double>)(source)));

            case DataFrameType.Single: return(new DataFrameColumn <Single>((DataFrameColumn <Single>)(source)));

            case DataFrameType.Int64: return(new DataFrameColumn <Int64>((DataFrameColumn <Int64>)(source)));

            case DataFrameType.Int32: return(new DataFrameColumn <Int32>((DataFrameColumn <Int32>)(source)));

            case DataFrameType.Int16: return(new DataFrameColumn <Int16>((DataFrameColumn <Int16>)(source)));

            case DataFrameType.Byte: return(new DataFrameColumn <Byte>((DataFrameColumn <Byte>)(source)));

            case DataFrameType.SByte: return(new DataFrameColumn <SByte>((DataFrameColumn <SByte>)(source)));

            case DataFrameType.String: return(new DataFrameColumn <String>((DataFrameColumn <String>)(source)));

            case DataFrameType.Boolean: return(new DataFrameColumn <Boolean>((DataFrameColumn <Boolean>)(source)));
            }

            throw new ArgumentException("Unknown DataFrameType");
        }
Exemple #2
0
 public static DataFrameColumnBase Create(Type type, DataFrame owner, int capacity, int fillSize)
 {
     return(Create(DataFrameTypeHelper.GetDataFrameType(type), owner, capacity, fillSize));
 }
Exemple #3
0
 public static DataFrameColumnBase Create(Type type, DataFrame owner)
 {
     return(Create(DataFrameTypeHelper.GetDataFrameType(type), owner));
 }