hdfs

package
Version: v0.0.0-...-f3846c7 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHdfsFileReader

func NewHdfsFileReader(hosts []string, user string, name string) (source.ParquetFile, error)

func NewHdfsFileWriter

func NewHdfsFileWriter(hosts []string, user string, name string) (source.ParquetFile, error)

Types

type HdfsFile

type HdfsFile struct {
	Hosts []string
	User  string

	Client     *hdfs.Client
	FilePath   string
	FileReader *hdfs.FileReader
	FileWriter *hdfs.FileWriter
}

func (*HdfsFile) Close

func (self *HdfsFile) Close() error

func (*HdfsFile) Create

func (self *HdfsFile) Create(name string) (source.ParquetFile, error)

func (*HdfsFile) Open

func (self *HdfsFile) Open(name string) (source.ParquetFile, error)

func (*HdfsFile) Read

func (self *HdfsFile) Read(b []byte) (cnt int, err error)

func (*HdfsFile) Seek

func (self *HdfsFile) Seek(offset int64, pos int) (int64, error)

func (*HdfsFile) Write

func (self *HdfsFile) Write(b []byte) (n int, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL