1
1
2
2
# # ================================================================================
3
- # # Remove in v0.24
3
+ # # Deprecated in v0.24
4
+ # #=================================================================================
5
+ @deprecate getBlobEntry (var:: AbstractDFGVariable , key:: AbstractString ) getBlobEntryFirst (var, Regex (key))
6
+
7
+ # # ================================================================================
8
+ # # Deprecated in v0.23
4
9
# #=================================================================================
5
10
# NOTE free up getNeighbors to return the variables or factors
6
11
@deprecate getNeighbors (args... ; kwargs... ) listNeighbors (args... ; kwargs... )
7
12
8
13
# # ================================================================================
9
- # # Remove in v0.23
14
+ # # Deprecated in v0.22
10
15
# #=================================================================================
11
-
12
16
@deprecate BlobEntry (
13
17
id,
14
18
blobId,
40
44
nothing ,
41
45
_type,
42
46
_version,
43
- )
44
-
45
- # # ================================================================================
46
- # # Remove in v0.22
47
- # #=================================================================================
48
-
49
- @deprecate getBlobEntry (var:: AbstractDFGVariable , key:: Regex ) getBlobEntryFirst (var, key)
50
-
51
- # # ================================================================================
52
- # # Remove in v0.21
53
- # #=================================================================================
54
- @deprecate packFactor (dfg:: AbstractDFG , f:: DFGFactor ) packFactor (f:: DFGFactor )
55
-
56
- # #TODO check this one
57
- # function addData!(
58
- # ::Type{<:BlobEntry},
59
- # dfg::AbstractDFG,
60
- # vLbl::Symbol,
61
- # bLbl::Symbol,
62
- # blob::AbstractVector{UInt8},
63
- # timestamp=now(localzone());
64
- # id::UUID = uuid4(),
65
- # hashfunction::Function = sha256
66
- # )
67
- # fde = BlobEntry(bLbl, id, timestamp, blob)
68
- # de = addBlobEntry!(dfg, vLbl, fde)
69
- # return de=>blob
70
- # end
71
-
72
- """
73
- $(TYPEDEF)
74
- Abstract parent struct for big data entry.
75
- """
76
- abstract type AbstractBlobEntry end
77
-
78
- # should be deprecated by v0.21
79
-
80
- @deprecate BlobStoreEntry (
81
- label:: Symbol ,
82
- id:: UUID ,
83
- blobstore:: Symbol ,
84
- hash:: String ,
85
- origin:: String ,
86
- description:: String ,
87
- mimeType:: String ,
88
- createdTimestamp:: ZonedDateTime ,
89
- ) BlobEntry (; originId = id, label, blobstore, hash, origin, description, mimeType)
90
-
91
- @deprecate hasDataEntry (w... ; kw... ) hasBlobEntry (w... ; kw... )
92
- @deprecate getDataEntry (w... ; kw... ) getBlobEntry (w... ; kw... )
93
- @deprecate getDataEntries (w... ; kw... ) getBlobEntries (w... ; kw... )
94
- @deprecate addDataEntry! (w... ; kw... ) addBlobEntry! (w... ; kw... )
95
- @deprecate updateDataEntry! (w... ; kw... ) updateBlobEntry! (w... ; kw... )
96
- @deprecate deleteDataEntry! (w... ; kw... ) deleteBlobEntry! (w... ; kw... )
97
- @deprecate listDataEntrySequence (w... ; kw... ) listBlobEntrySequence (w... ; kw... )
98
-
99
- # @deprecate getData(w...;kw...) getBlob(w...;kw...)
100
- @deprecate getDataBlob (w... ; kw... ) getBlob (w... ; kw... )
101
- @deprecate addDataBlob! (w... ; kw... ) addBlob! (w... ; kw... )
102
- @deprecate updateDataBlob! (w... ; kw... ) updateBlob! (w... ; kw... )
103
- @deprecate deleteDataBlob! (w... ; kw... ) deleteBlob! (w... ; kw... )
104
- @deprecate listDataBlobs (w... ; kw... ) listBlobs (w... ; kw... )
105
-
106
- # function updateBlob!(
107
- # dfg::AbstractDFG,
108
- # label::Symbol,
109
- # entry::BlobEntry
110
- # )
111
- # # assertHash(entry, entry.data, hashfunction=hashfunction)
112
- # de = updateBlobEntry!(dfg, label, entry)
113
- # db = getBlob(dfg, entry)
114
- # return de=>db
115
- # end
116
-
117
- # function addBlob!(
118
- # dfg::AbstractDFG,
119
- # label::Symbol,
120
- # entry::BlobEntry;
121
- # hashfunction = sha256
122
- # )
123
- # # assertHash(entry, entry.data, hashfunction=hashfunction)
124
- # de = addBlobEntry!(dfg, label, entry)
125
- # db = getBlob(dfg, entry)
126
- # return de=>db
127
- # end
47
+ )
0 commit comments