csvreader

package
v2.3.8+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnSeriesMapFromCSVData

func ColumnSeriesMapFromCSVData(csmInit ColumnSeriesMap, key TimeBucketKey, csvRows [][]string, columnIndex []int,
	dataShapes []DataShape) (csm ColumnSeriesMap)

func GetFloat32ColumnFromCSVRows

func GetFloat32ColumnFromCSVRows(csvRows [][]string, index int) (col []float32, err error)

func GetFloat64ColumnFromCSVRows

func GetFloat64ColumnFromCSVRows(csvRows [][]string, index int) (col []float64, err error)

func GetInt32ColumnFromCSVRows

func GetInt32ColumnFromCSVRows(csvRows [][]string, index int) (col []int32, err error)

func GetInt64ColumnFromCSVRows

func GetInt64ColumnFromCSVRows(csvRows [][]string, index int) (col []int64, err error)

func TimeColumnsFromCSV

func TimeColumnsFromCSV(csvData [][]string, columnIndex []int, conf *Configuration) (epochCol []int64, nanosCol []int32)

Types

type Configuration

type Configuration struct {
	FirstRowHasColumnNames bool     `yaml:"firstRowHasColumnNames"`
	TimeFormat             string   `yaml:"timeFormat"`
	Timezone               string   `yaml:"timeZone"`
	ColumnNameMap          []string `yaml:"columnNameMap"`
}

func NewConfiguration

func NewConfiguration() *Configuration

func ReadCSVFileMetadata

func ReadCSVFileMetadata(dataFD, controlFD *os.File, dataShapes []DataShape) (columnIndex []int, csvReader *csv.Reader, conf *Configuration, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL