@@ -36,7 +36,7 @@ getTimestamp(entry::BlobEntry) = entry.timestamp
36
36
37
37
38
38
39
- function assertHash (de:: AbstractDataEntry , db; hashfunction:: Function = sha256)
39
+ function assertHash (de:: BlobEntry , db; hashfunction:: Function = sha256)
40
40
getHash (de) === nothing && @warn " Missing hash?" && return true
41
41
if hashfunction (db) == getHash (de)
42
42
return true # or nothing?
@@ -88,7 +88,7 @@ function getBlobEntry(var::AbstractDFGVariable, blobId::UUID)
88
88
end
89
89
end
90
90
throw (
91
- KeyError (" No dataEntry with blobId $(blobId) found in variable $(getLabel (var)) " )
91
+ KeyError (" No blobEntry with blobId $(blobId) found in variable $(getLabel (var)) " )
92
92
)
93
93
end
94
94
@@ -101,7 +101,7 @@ function getBlobEntry(var::AbstractDFGVariable, key::Regex)
101
101
end
102
102
end
103
103
throw (
104
- KeyError (" No dataEntry with label matching regex $(key) found in variable $(getLabel (var)) " )
104
+ KeyError (" No blobEntry with label matching regex $(key) found in variable $(getLabel (var)) " )
105
105
)
106
106
end
107
107
@@ -120,7 +120,7 @@ Should be extended if DFG variable is not returned by reference.
120
120
Also see: [`getBlobEntry`](@ref), [`addBlob`](@ref), [`mergeBlobEntries!`](@ref)
121
121
"""
122
122
function addBlobEntry! (var:: AbstractDFGVariable , bde:: BlobEntry )
123
- haskey (var. dataDict, bde. label) && error (" Data entry $(bde. label) already exists in variable $(getLabel (var)) " )
123
+ haskey (var. dataDict, bde. label) && error (" blobEntry $(bde. label) already exists on variable $(getLabel (var)) " )
124
124
var. dataDict[bde. label] = bde
125
125
return bde
126
126
end
179
179
"""
180
180
$SIGNATURES
181
181
182
- Does a data entry (element) exist at `key `.
182
+ Does a blob entry (element) exist with `blobLabel `.
183
183
"""
184
- hasBlobEntry (var:: AbstractDFGVariable , key :: Symbol ) = haskey (var. dataDict, key )
184
+ hasBlobEntry (var:: AbstractDFGVariable , blobLabel :: Symbol ) = haskey (var. dataDict, blobLabel )
185
185
186
186
187
187
"""
213
213
214
214
"""
215
215
$SIGNATURES
216
- List a collection of data entries per variable that match a particular `pattern::Regex`.
216
+ List a collection of blob entries per variable that match a particular `pattern::Regex`.
217
217
218
218
Notes
219
219
- Optional sort function argument, default is unsorted.
244
244
"""
245
245
$SIGNATURES
246
246
247
- Add a data entry into the destination variable which already exists
247
+ Add a blob entry into the destination variable which already exists
248
248
in a source variable.
249
249
250
250
See also: [`addBlobEntry!`](@ref), [`getBlobEntry`](@ref), [`listBlobEntries`](@ref), [`getBlob`](@ref)
0 commit comments