v4

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimensionOptionReader

type DimensionOptionReader interface {
	Read() (string, string, error)
}

DimensionOptionReader reads a V4 file and provides unique dimension options.

type HierarchicalLabelReader

type HierarchicalLabelReader struct {
	// contains filtered or unexported fields
}

HierarchicalLabelReader reads a code / label pair from a V4 file and parses hierarchy information from the label.

func NewHierarchicalLabelReader

func NewHierarchicalLabelReader(reader DimensionOptionReader, rootLabelCode string, codeListID string) *HierarchicalLabelReader

NewHierarchicalLabelReader returns a new reader. The root code is required as no hierarchy info can be determined from level 0 and 1

func (HierarchicalLabelReader) Read

func (reader HierarchicalLabelReader) Read() (*hierarchy.Node, error)

Read a V4 dimension label and extract hierarchy related data.

type UniqueReader

type UniqueReader struct {
	// contains filtered or unexported fields
}

UniqueReader reads unique values from a column in a CSV file.

func NewUniqueReader

func NewUniqueReader(csvReader csv.Reader, codeIndex int, labelIndex int) *UniqueReader

NewUniqueReader configures the reader to return values from the given column indexes.

func (UniqueReader) Read

func (reader UniqueReader) Read() (string, string, error)

Read will read values from CSV until it finds one that has not already been returned.

Jump to

Keyboard shortcuts

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