コード例 #1
0
ファイル: DataColumn.cs プロジェクト: joareby/parquet-dotnet
        /// <summary>
        ///
        /// </summary>
        /// <param name="field"></param>
        /// <param name="data"></param>
        /// <param name="repetitionLevels"></param>
        public DataColumn(DataField field, Array data, int[] repetitionLevels = null) : this(field)
        {
            Data = data ?? throw new ArgumentNullException(nameof(data));

            RepetitionLevels = repetitionLevels;
        }
コード例 #2
0
 /// <summary>
 /// Slices rows and returns list of all values in a particular column.
 /// </summary>
 /// <param name="schemaElement">Schema element</param>
 /// <param name="offset">The offset.</param>
 /// <param name="count">The count.</param>
 /// <returns>
 /// Column values
 /// </returns>
 /// <exception cref="ArgumentException"></exception>
 public IList GetColumn(DataField schemaElement, int offset = 0, int count = -1)
 {
     return(GetColumn(schemaElement.Path, offset, count));
 }
コード例 #3
0
ファイル: DataColumn.cs プロジェクト: joareby/parquet-dotnet
        private DataColumn(DataField field)
        {
            Field = field ?? throw new ArgumentNullException(nameof(field));

            _dataTypeHandler = DataTypeFactory.Match(field.DataType);
        }
コード例 #4
0
 /// <summary>
 /// Gets the column as strong typed collection
 /// </summary>
 /// <typeparam name="T">Column element type</typeparam>
 /// <param name="schemaElement">Column schema</param>
 /// <returns>Strong typed collection</returns>
 public IReadOnlyCollection <T> GetColumn <T>(DataField schemaElement)
 {
     return((List <T>)GetColumn(schemaElement));
 }