hive

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HivePartition

type HivePartition struct {
	Key   string
	Value string
}

type HivePartitions

type HivePartitions []HivePartition

func ParsePathString

func ParsePathString(path string) HivePartitions

ParsePathString converts a path to a map of partition key/values by locating tokens which contain an `=` sign and splitting on that character.

func (HivePartitions) Get

func (hv HivePartitions) Get(key string) string

func (HivePartitions) PathString

func (hv HivePartitions) PathString() string

PathString convert a map of partition key/values to a path string

type S3Client

type S3Client interface {
	PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}

type SymlinkGenerator

type SymlinkGenerator struct {
	// contains filtered or unexported fields
}

func NewSymlinkGenerator

func NewSymlinkGenerator(s3client S3Client) *SymlinkGenerator
func (sg *SymlinkGenerator) StoreSymlink(ctx context.Context, bucket, prefix string, hivePartitions HivePartitions, symlinkKeys []string) (*s3.PutObjectOutput, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL