Documentation
¶
Index ¶
- type LineSkipper
- type SeqFile
- func (sf *SeqFile) Close() (err error)
- func (sf *SeqFile) IsNewOpen() bool
- func (sf *SeqFile) Lag() (rl *LagInfo, err error)
- func (sf *SeqFile) Name() string
- func (sf *SeqFile) NewSourceIndex() []reader.SourceIndex
- func (sf *SeqFile) Read(p []byte) (n int, err error)
- func (sf *SeqFile) SetSkipped()
- func (sf *SeqFile) Source() string
- func (sf *SeqFile) SyncMeta() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineSkipper ¶
type LineSkipper interface {
IsNewOpen() bool
SetSkipped()
}
type SeqFile ¶
type SeqFile struct {
SkipFileFirstLine bool //跳过新文件的第一行,常用于带title的csv文件,title与实际格式不同
ReadSameInode bool //记录已经读过的filename_inode是否继续读
// contains filtered or unexported fields
}
SeqFile 按最终修改时间依次读取文件的Reader类型
func NewSeqFile ¶
func (*SeqFile) NewSourceIndex ¶
func (sf *SeqFile) NewSourceIndex() []reader.SourceIndex
func (*SeqFile) SetSkipped ¶
func (sf *SeqFile) SetSkipped()
Click to show internal directories.
Click to hide internal directories.