![]() |
IOLink C# 1.16.1
|
Public Member Functions | |
| DataFrameView (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| virtual DataFrameCapabilitySet | GetCapabilities () |
| virtual Vector2u64 | GetShape () |
| virtual string | ColumnName (uint index) |
| virtual uint | ColumnIndex (string name) |
| virtual DataType | ColumnDataType (uint index) |
| unsafe void | Read (uint column, uint offset, uint count, byte[] dst) |
| string | Unit (uint columnIndex) |
| unsafe void | Write (uint column, uint offset, uint count, byte[] src) |
| void | SetUnit (uint columnIndex, string unit) |
| virtual void | AddColumn (string name, DataType dtype) |
| virtual void | AddRows (uint offset, uint count) |
| virtual void | RemoveColumn (uint index) |
| virtual void | RemoveRows (uint offset, uint count) |
| string | ToString () |
| Return a string representation. | |
| void | Reshape (Vector2u64 shape, string[] columnNames, DataType[] columnDataTypes) |
| void | SetColumnName (string columnName, string newName) |
| std::string&, const std::string&) | |
| void | SetColumnName (uint index, string newName) |
| , const std::string&) | |
| unsafe void | Read (uint column, uint offset, uint count, string[] dst) |
| unsafe void | Write (uint column, uint offset, uint count, string[] src) |
Public Member Functions inherited from IOLink.View | |
| View (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| void | Dispose () |
| T | Extension< T > () |
| Get an extension, with automatic upcasting. | |
| virtual Extension | Extension (uint id) |
| ViewOriginExtension | ViewOrigin () |
| Shortcut to access to ViewOrigin extension. | |
Static Public Member Functions | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (DataFrameView obj) |
Static Public Member Functions inherited from IOLink.View | |
| static global::System.Runtime.InteropServices.HandleRef | getCPtr (View obj) |
Protected Member Functions | |
| override void | Dispose (bool disposing) |
Properties | |
| DataFrameCapabilitySet | Capabilities [get] |
The Capabilities on the DataFrameView | |
| Vector2u64 | Shape [get] |
The shape on the DataFrameView | |
View to model tabular data. This view is composed of a set of columns, that have a name and a data type. A column's name is unique, and columns in a dataframe can have different data types. Each column has the same number of elements. The aggregate of all n-th elements of columns are a row of the dataframe.
|
inlinevirtual |
Add a column to the dataframe. This method requires the RESHAPE capability. The new column's data will be undefined after addition.
| name | The name of the new column. |
| dtype | The type of data stored in the column. |
| NotImplemented | When the view does not support reshaping. |
| Error | if there is already a column with the same name. |
| Error | if the implementation does not support the data type. |
|
inlinevirtual |
Insert rows at the specified position. This method requires the RESHAPE capability. New rows content will be undefined after insertion.
| offset | New rows will be inserted before this row. If the offset is the number of rows in the dataframe, rows will be inserted at the end. |
| count | The number of rows to insert. |
| NotImplemented | When the view does not support reshaping. |
| Error | When offset is out of bounds. |
| Error | When it is impossible to add these rows. |
|
inlinevirtual |
Return the data type of the column.
| index | The index of the column. |
| Error | When index is out of range. |
|
inlinevirtual |
Get the index of a column from its name.
| name | The name of the column. |
| Error | If there is no column with that name. |
|
inlinevirtual |
Get the name of a column from its index. Column indices go from 0 to shape[0] - 1.
| index | The index of the column. |
| Error | If index is out of range. |
|
inlineprotectedvirtual |
Reimplemented from IOLink.View.
|
inlinevirtual |
Return the view's capabilities
|
inlinevirtual |
Return the shape of the data frame. First element being the number of columns, and the second, the number of rows.
|
inline |
Read data from a column. This method requires the READ capability. When reading numeric data, the dst buffer will be filled with continuous values. In the case of strings, it will be a continuous array of string objects. The destination buffer must be allocated by the user. If its size is under the byte count needed to store the request number of elements, a segmentation fault will rise, as there is no boundaries check.
| column | The index of the column to read from. |
| offset | The index of the first element to read. |
| count | The number of elements to read. |
| dst | A buffer where the read data will be written. |
| NotImplemented | When the view does not support reading. |
| Error | When dst is null. |
| Error | When the column index is invalid. |
| Error | When offset is out of bounds. |
| Error | If it is impossible to read the number of elements required. |
|
inlinevirtual |
Remove a column. This method requires the RESHAPE capability.
| index | The index of the column to remove. |
| NotImplemented | When the view does not support reshaping. |
| Error | If the index is out of bounds. |
| Error | When it is impossible to remove that column. |
|
inlinevirtual |
Remove a continuous set of rows. This method requires the RESHAPE capability.
| offset | The index of the first column to remove. |
| count | Row count to delete. |
| NotImplemented | When the view does not support reshaping. |
| Error | When offset is out of bounds. |
| Error | When it is impossible to remove these rows. |
|
inline |
Method to reshape a DataFrame This method requires the RESHAPE capability. All the dataframe's data is invalidated after this operation.
| shape | shape of the allocated dataframe (column count, row count) |
| columnNames | Array which contains the name for each column |
| columnDataTypes | Array which contains the data type of each column |
No check is done on inputs. Pass arguments very carefully.
column count and row count cannot be 0.
| Error | if a DataType is not supported. |
|
inline |
Gives the unit of given column.
| columnIndex | The index of the column. |
| Error | If the column index is out of bounds. |
|
inline |
Write data into a column. This method requires the WRITE capability. When writing numeric data, the src buffer must be filled with continuous values. In the case of strings, the source must use a continuous array of string objects. The source buffer must be allocated by the user. If its size is under the byte count needed to store the request number of elements, a segmentation fault will rise, as there is no boundaries check.
| column | The index of the column to write into. |
| offset | The index of the first element to write. |
| count | The number of element to write. |
| src | A buffer whose content will be written in the column. |
| NotImplemented | When the view does not support writing. |
| Error | When src is null. |
| Error | When the column index is invalid. |
| Error | When offset is out of bounds. |
| Error | If it is impossible to write the number of elements required. |