Documentation ¶
Index ¶
- type Client
- func (c Client) CreateStatusFile(jobUUID string) error
- func (c Client) DeleteShares(dataIDs []string) error
- func (c Client) DeleteStatusFile(jobUUID string) error
- func (c Client) GetComputationResult(jobUUID string, resultTypes []string) ([]*ComputationResult, error)
- func (c Client) GetComputationStatus(jobUUID string) (pb_types.JobStatus, error)
- func (c Client) GetElapsedTime(jobUUID string) (float64, error)
- func (c Client) GetJobErrorInfo(jobUUID string) *pb_types.JobErrorInfo
- func (c Client) GetMatchingColumn(dataID string) (int32, error)
- func (c Client) GetSchema(dataID string) ([]*pb_types.Schema, error)
- func (c Client) GetSharePiece(dataID string, pieceID int32) (Share, error)
- func (c Client) GetSharePieceSize(dataID string) (int32, error)
- func (c Client) InsertShares(dataID string, schema []*pb_types.Schema, pieceID int32, shares string, ...) error
- type ComputationResult
- type ComputationResultMeta
- type M2DbClient
- type Share
- type ShareMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
外部から呼ばれるinterface
func (Client) CreateStatusFile ¶
func (Client) DeleteStatusFile ¶
func (Client) GetComputationResult ¶
func (c Client) GetComputationResult(jobUUID string, resultTypes []string) ([]*ComputationResult, error)
DBから計算結果を得る
func (Client) GetComputationStatus ¶
func (Client) GetJobErrorInfo ¶
func (c Client) GetJobErrorInfo(jobUUID string) *pb_types.JobErrorInfo
func (Client) GetSharePiece ¶
type ComputationResult ¶
type ComputationResult struct { ID string `json:"id"` JobUUID string `json:"job_uuid"` Result []string `json:"result"` Meta ComputationResultMeta `json:"meta"` }
type ComputationResultMeta ¶
type ComputationResultMeta struct { ColumnNumber int32 `json:"column_number"` PieceID int32 `json:"piece_id"` ResultType string }
計算結果形式
type M2DbClient ¶
type M2DbClient interface { GetSchema(string) ([]*pb_types.Schema, error) GetComputationStatus(string) (pb_types.JobStatus, error) GetJobErrorInfo(string) *pb_types.JobErrorInfo GetComputationResult(string, []string) ([]*ComputationResult, error) GetElapsedTime(string) (float64, error) GetMatchingColumn(string) (int32, error) CreateStatusFile(string) error DeleteStatusFile(string) error }
Click to show internal directories.
Click to hide internal directories.