Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvFileImportedDataRow ¶
type CsvFileImportedDataRow struct {
// contains filtered or unexported fields
}
CsvFileImportedDataRow defines the structure of csv data table row
func (*CsvFileImportedDataRow) ColumnCount ¶
func (r *CsvFileImportedDataRow) ColumnCount() int
ColumnCount returns the total count of column in this data row
func (*CsvFileImportedDataRow) GetData ¶
func (r *CsvFileImportedDataRow) GetData(columnIndex int) string
GetData returns the data in the specified column index
type CsvFileImportedDataRowIterator ¶
type CsvFileImportedDataRowIterator struct {
// contains filtered or unexported fields
}
CsvFileImportedDataRowIterator defines the structure of csv data table row iterator
func (*CsvFileImportedDataRowIterator) CurrentRowId ¶
func (t *CsvFileImportedDataRowIterator) CurrentRowId() string
CurrentRowId returns current index
func (*CsvFileImportedDataRowIterator) HasNext ¶
func (t *CsvFileImportedDataRowIterator) HasNext() bool
HasNext returns whether the iterator does not reach the end
func (*CsvFileImportedDataRowIterator) Next ¶
func (t *CsvFileImportedDataRowIterator) Next() datatable.ImportedDataRow
Next returns the next imported data row
type CsvFileImportedDataTable ¶
type CsvFileImportedDataTable struct {
// contains filtered or unexported fields
}
CsvFileImportedDataTable defines the structure of csv data table
func CreateNewCsvImportedDataTable ¶
func CreateNewCsvImportedDataTable(ctx core.Context, reader io.Reader) (*CsvFileImportedDataTable, error)
CreateNewCsvImportedDataTable returns comma separated values data table by io readers
func CreateNewCustomCsvImportedDataTable ¶
func CreateNewCustomCsvImportedDataTable(allLines [][]string) *CsvFileImportedDataTable
CreateNewCustomCsvImportedDataTable returns character separated values data table by io readers
func (*CsvFileImportedDataTable) DataRowCount ¶
func (t *CsvFileImportedDataTable) DataRowCount() int
DataRowCount returns the total count of data row
func (*CsvFileImportedDataTable) DataRowIterator ¶
func (t *CsvFileImportedDataTable) DataRowIterator() datatable.ImportedDataRowIterator
DataRowIterator returns the iterator of data row
func (*CsvFileImportedDataTable) HeaderColumnNames ¶
func (t *CsvFileImportedDataTable) HeaderColumnNames() []string
HeaderColumnNames returns the header column name list