orc

所属分类:大数据
开发工具:GO
文件大小:10591KB
下载次数:0
上传日期:2021-05-13 14:41:43
上 传 者sh-1993
说明:  Go的ORC文件格式读取器和编写器。
(An ORC file format reader and writer for Go.)

文件列表:
.travis.yml (92, 2021-05-13)
LICENSE (1083, 2021-05-13)
booleanreader.go (841, 2021-05-13)
booleanreader_test.go (1244, 2021-05-13)
booleanwriter.go (1086, 2021-05-13)
booleanwriter_test.go (1285, 2021-05-13)
buffererwriter.go (3415, 2021-05-13)
columnstatistics.go (7605, 2021-05-13)
compressioncodec.go (7228, 2021-05-13)
compressioncodec_test.go (1773, 2021-05-13)
cursor.go (4810, 2021-05-13)
cursor_test.go (3319, 2021-05-13)
decimal.go (1571, 2021-05-13)
decimal_test.go (544, 2021-05-13)
dictionary.go (1810, 2021-05-13)
dictionary_test.go (1888, 2021-05-13)
dictionary_v2.go (1161, 2021-05-13)
examples (0, 2021-05-13)
examples\TestOrcFile.columnProjection.orc (429075, 2021-05-13)
examples\TestOrcFile.emptyFile.orc (523, 2021-05-13)
examples\TestOrcFile.metaData.orc (41935, 2021-05-13)
examples\TestOrcFile.test1.orc (1711, 2021-05-13)
examples\TestOrcFile.testDate1900.orc (30941, 2021-05-13)
examples\TestOrcFile.testDate2038.orc (95787, 2021-05-13)
examples\TestOrcFile.testMemoryManagementV11.orc (19869, 2021-05-13)
examples\TestOrcFile.testMemoryManagementV12.orc (10864, 2021-05-13)
examples\TestOrcFile.testPredicatePushdown.orc (15708, 2021-05-13)
examples\TestOrcFile.testSeek.orc (1898095, 2021-05-13)
examples\TestOrcFile.testSnappy.orc (126370, 2021-05-13)
examples\TestOrcFile.testStringAndBinaryStatistics.orc (341, 2021-05-13)
examples\TestOrcFile.testStripeLevelStats.orc (851, 2021-05-13)
examples\TestOrcFile.testTimestamp.orc (289, 2021-05-13)
examples\TestOrcFile.testUnionAndTimestamp.orc (21432, 2021-05-13)
examples\TestOrcFile.testWithoutIndex.orc (214892, 2021-05-13)
examples\TestVectorOrcFile.testLz4.orc (121309, 2021-05-13)
examples\TestVectorOrcFile.testLzo.orc (121311, 2021-05-13)
examples\decimal.orc (16337, 2021-05-13)
... ...

# orc [![Build Status](https://travis-ci.org/scritchley/orc.svg?branch=master)](https://travis-ci.org/scritchley/orc) [![code-coverage](http://gocover.io/_badge/code.simon-critchley.co.uk/orc)](http://gocover.io/github.com/scritchley/orc) [![go-doc](https://godoc.org/code.simon-critchley.co.uk/orc?status.svg)](https://godoc.org/github.com/scritchley/orc) ## Project Status This project is still a work in progress. ## Current Support | Column Encoding | Read | Write | Go Type | |---------------------------|------|-------|-------------------------------------| | SmallInt, Int, BigInt | | | int*** | | Float, Double | | | float32, float*** | | String, Char, and VarChar | | | string | | Boolean | | | bool | | TinyInt | | | byte | | Binary | | | []byte | | Decimal | | | orc.Decimal | | Date | | | orc.Date (time.Time) | | Timestamp | | | time.Time | | Struct | | | orc.Struct (map[string]interface{}) | | List | | | []interface{} | | Map | | | []orc.MapEntry | | Union | | | interface{} | - The writer support is in its late stages, however, I do not recommend using it yet. ## Example r, err := Open("./examples/demo-12-zlib.orc") if err != nil { log.Fatal(err) } defer r.Close() // Create a new Cursor reading the provided columns. c := r.Select("_col0", "_col1", "_col2") // Iterate over each stripe in the file. for c.Stripes() { // Iterate over each row in the stripe. for c.Next() { // Retrieve a slice of interface values for the current row. log.Println(c.Row()) } } if err := c.Err(); err != nil { log.Fatal(err) }

近期下载者

相关文件


收藏者