func NewDatasetVersion(h *data.Handle) *DatasetVersion { return &DatasetVersion{ Path: h.Path(), Version: h.Version, Dataset: h.Dataset(), } }
func (i *IndexDB) GetDatasetVersion(h *data.Handle) (*DatasetVersion, error) { if h == nil || !h.Valid() { return nil, fmt.Errorf("Invalid dataset handle: %v.", h) } ret, err := i.ds.Get(HandleKey(h)) out, _ := ret.(*DatasetVersion) return out, err }