Documentation
¶
Index ¶
- Constants
- Variables
- func DatumID(inputs []*Input) string
- func HashDatum(pipelineSalt string, inputs []*Input) string
- func MatchDatum(filter []string, inputs []*pps.InputFile) bool
- func MetaFilePath(id string) string
- func Shard(pachClient *client.APIClient, fileSetIDs []string) ([]*pfs.PathRange, error)
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) GetBranch() string
- func (m *Input) GetEmptyFiles() bool
- func (m *Input) GetFileInfo() *pfs.FileInfo
- func (m *Input) GetGitURL() string
- func (m *Input) GetGroupBy() string
- func (m *Input) GetJoinOn() string
- func (m *Input) GetLazy() bool
- func (m *Input) GetName() string
- func (m *Input) GetOuterJoin() bool
- func (m *Input) GetS3() bool
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (x *Input) MarshalLogObject(enc zapcore.ObjectEncoder) error
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // MetaPrefix is the prefix for the meta path. MetaPrefix = "meta" // MetaFileName is the name of the meta file. MetaFileName = "meta" // PFSPrefix is the prefix for the pfs path. PFSPrefix = "pfs" // OutputPrefix is the prefix for the output path. OutputPrefix = "out" // TmpFileName is the name of the tmp file. TmpFileName = "tmp" // EnvFileName is the name of the env file. EnvFileName = ".env" TTL = 15 * time.Minute )
Variables ¶
Functions ¶
func MatchDatum ¶
MatchDatum checks if a datum matches a filter. To match each string in filter must correspond match at least 1 datum's Path or Hash. Order of filter and inputs is irrelevant.
func MetaFilePath ¶
Types ¶
type Input ¶
type Input struct { FileInfo *pfs.FileInfo `protobuf:"bytes,1,opt,name=file_info,json=fileInfo,proto3" json:"file_info,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` JoinOn string `protobuf:"bytes,4,opt,name=join_on,json=joinOn,proto3" json:"join_on,omitempty"` OuterJoin bool `protobuf:"varint,5,opt,name=outer_join,json=outerJoin,proto3" json:"outer_join,omitempty"` GroupBy string `protobuf:"bytes,6,opt,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` Lazy bool `protobuf:"varint,7,opt,name=lazy,proto3" json:"lazy,omitempty"` Branch string `protobuf:"bytes,8,opt,name=branch,proto3" json:"branch,omitempty"` GitURL string `protobuf:"bytes,9,opt,name=git_url,json=gitUrl,proto3" json:"git_url,omitempty"` EmptyFiles bool `protobuf:"varint,10,opt,name=empty_files,json=emptyFiles,proto3" json:"empty_files,omitempty"` S3 bool `protobuf:"varint,11,opt,name=s3,proto3" json:"s3,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Input) Descriptor ¶
func (*Input) GetEmptyFiles ¶
func (*Input) GetFileInfo ¶
func (*Input) GetGroupBy ¶
func (*Input) GetOuterJoin ¶
func (*Input) MarshalLogObject ¶
func (x *Input) MarshalLogObject(enc zapcore.ObjectEncoder) error
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.