orc

An ORC file format reader and writer for Go.

  • 所有者: scritchley/orc
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

orc

Build Status
code-coverage
go-doc

Project Status

This project is still a work in progress.

Current Support, Column Encoding, Read, Write, Go Type, ---------------------------, ------, -------, -------------------------------------, SmallInt, Int, BigInt, ✓, int64, Float, Double, ✓, float32, float64, 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)
}

主要指標

概覽
名稱與所有者scritchley/orc
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-07-31 10:15:12
推送於2021-05-13 14:41:43
最后一次提交2021-05-13 22:41:43
發布數0
用户参与
星數131
關注者數10
派生數50
提交數67
已啟用問題?
問題數38
打開的問題數14
拉請求數30
打開的拉請求數1
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?