Documentation
¶
Index ¶
- Constants
- Variables
- func DecodeVIntSize(value byte) int
- func IsNegativeVInt(fst byte) bool
- func ReadBoolean(r io.Reader) (bool, error)
- func ReadBuffer(r io.Reader) ([]byte, error)
- func ReadByte(r io.Reader) (byte, error)
- func ReadInt(r io.Reader) (int32, error)
- func ReadVLong(r io.Reader) (int64, error)
- func WriteBoolean(w io.Writer, v bool) error
- func WriteBuffer(w io.Writer, buf []byte) (int, error)
- func WriteByte(w io.Writer, b byte) error
- func WriteInt(w io.Writer, v int32) error
- func WriteVLong(w io.Writer, i int64) (int, error)
- type BytesWritable
- type Bzip2Codec
- type Codec
- type IntWritable
- type LongWritable
- type Lz4Codec
- type SequenceFileReader
- type SequenceFileWriter
- type SequenceFileWriterOpts
- type SnappyCodec
- type TextWritable
- type Writable
- type ZlibCodec
Constants ¶
View Source
const ( VERSION_BLOCK_COMPRESS = 4 VERSION_CUSTOM_COMPRESS = 5 VERSION_WITH_METADATA = 6 )
View Source
const BLOCK_SIZE_MIN = 1 << 20 // Corresponds roughly to io.seqfile.compress.blocksize
View Source
const SYNC_HASH_SIZE = 16
Variables ¶
View Source
var ( Codecs map[string]Codec = map[string]Codec{ "org.apache.hadoop.io.compress.DefaultCodec": &ZlibCodec{}, "org.apache.hadoop.io.compress.Lz4Codec": &Lz4Codec{}, "org.apache.hadoop.io.compress.BZip2Codec": &Bzip2Codec{}, } )
View Source
var SEQ_MAGIC = []byte("SEQ")
Functions ¶
func DecodeVIntSize ¶
func IsNegativeVInt ¶
Types ¶
type BytesWritable ¶
type BytesWritable struct {
Buf []byte
}
type Bzip2Codec ¶
type Bzip2Codec struct { }
func (*Bzip2Codec) Uncompress ¶
func (c *Bzip2Codec) Uncompress(dst, src []byte) ([]byte, error)
type IntWritable ¶
type IntWritable int32
type LongWritable ¶
type LongWritable int64
type SequenceFileReader ¶
type SequenceFileReader struct {
// contains filtered or unexported fields
}
func NewSequenceFileReader ¶
func NewSequenceFileReader(r io.Reader) (*SequenceFileReader, error)
func (*SequenceFileReader) Close ¶
func (self *SequenceFileReader) Close() error
type SequenceFileWriter ¶
type SequenceFileWriter struct {
// contains filtered or unexported fields
}
func NewSequenceFileWriter ¶
func NewSequenceFileWriter(w io.Writer, opts *SequenceFileWriterOpts) (*SequenceFileWriter, error)
func (*SequenceFileWriter) Close ¶
func (self *SequenceFileWriter) Close() error
type SequenceFileWriterOpts ¶
type SnappyCodec ¶
type SnappyCodec struct { }
type TextWritable ¶
type TextWritable struct {
Buf []byte
}
Click to show internal directories.
Click to hide internal directories.