Documentation ¶
Index ¶
Constants ¶
View Source
const DataValueWidth = 128 // max width of 32 bit float string in bytes
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CartesianProduct ¶
type CartesianProduct struct {
// contains filtered or unexported fields
}
func NewCartesianProduct ¶
func NewCartesianProduct(input [][]string) CartesianProduct
func (*CartesianProduct) All ¶
func (c *CartesianProduct) All() [][]string
func (*CartesianProduct) Next ¶
func (c *CartesianProduct) Next() ([]string, bool)
func (*CartesianProduct) NextP ¶
func (c *CartesianProduct) NextP(ret *[]*string) bool
type HeaderParseState ¶
type Parser ¶
type Parser struct { CubeWriter StatCubeWriter // contains filtered or unexported fields }
func (*Parser) ParseDataDense ¶
func (*Parser) ParseHeader ¶
type PxHeaderRow ¶
type RowAccumulator ¶
type RowAccumulator struct { Keyword string Language string Subkey string Subkeys []string Value string Values []string }
func (*RowAccumulator) ToRow ¶
func (r *RowAccumulator) ToRow() PxHeaderRow
type StatCubeCsvWriter ¶
func (*StatCubeCsvWriter) WriteFooting ¶
func (w *StatCubeCsvWriter) WriteFooting()
func (*StatCubeCsvWriter) WriteHeading ¶
func (w *StatCubeCsvWriter) WriteHeading(stub, headingCsv []string)
type StatCubeParquetWriter ¶
type StatCubeParquetWriter struct { Values [][]float32 Writer *bufio.Writer ParquetWriter *file.Writer // contains filtered or unexported fields }
func (*StatCubeParquetWriter) WriteFooting ¶
func (w *StatCubeParquetWriter) WriteFooting()
func (*StatCubeParquetWriter) WriteHeading ¶
func (w *StatCubeParquetWriter) WriteHeading(stub, headingCsv []string)
type StatCubeWriter ¶
type StatCubeWriter interface { WriteHeading(stub, headingCsv []string) // Yes, the signature is a bit funny, but it's like this to optimize // the way data is laid out in a tight loop that has to avoid allocs. WriteRow(stubs *[]*string, values *[][]byte, valueLengths *[]int, stubWidth, headingWidth int) WriteFooting() }
Click to show internal directories.
Click to hide internal directories.