Skip to content

Commit a77ffde

Browse files
authored
Merge pull request #16 from andyferris/ajf/github-actions
Upgrade to Dictionaries 0.3.0
2 parents 54779da + ff6d390 commit a77ffde

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
authors = ["Andy Ferris <ferris.andy@gmail.com>"]
22
name = "AcceleratedArrays"
33
uuid = "44e12807-9a19-5591-91cf-c1b4fb89ce64"
4-
version = "0.3.1"
4+
version = "0.3.2"
55

66
[deps]
77
SplitApplyCombine = "03a91e81-4c3e-53e1-a0a4-9c0c8f19dd66"
@@ -16,4 +16,4 @@ test = ["Test"]
1616
[compat]
1717
julia = "1"
1818
SplitApplyCombine = "1"
19-
Dictionaries = "0.2"
19+
Dictionaries = "0.3"

src/HashIndex.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Hash table acceleration index
2-
struct HashIndex{D <: HashDictionary} <: AbstractIndex
2+
struct HashIndex{D <: Dictionary} <: AbstractIndex
33
dict::D
44
end
55

66
function HashIndex(a::AbstractArray)
7-
dict = HashDictionary{eltype(a), Vector{eltype(keys(a))}}()
7+
dict = Dictionary{eltype(a), Vector{eltype(keys(a))}}()
88

99
@inbounds for i in keys(a)
1010
value = a[i]
@@ -116,7 +116,7 @@ function SplitApplyCombine.leftgroupjoin(lkey, ::typeof(identity), f, ::typeof(i
116116
K = promote_op(lkey, eltype(left))
117117

118118
dict = right.index.dict
119-
out = HashDictionary{K, Vector{T}}()
119+
out = Dictionary{K, Vector{T}}()
120120
for a left
121121
key = lkey(a)
122122
group = get!(() -> T[], out, key)

src/UniqueHashIndex.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Hash table acceleration index
2-
struct UniqueHashIndex{D <: HashDictionary} <: AbstractUniqueIndex
2+
struct UniqueHashIndex{D <: Dictionary} <: AbstractUniqueIndex
33
dict::D
44
end
55

66
function UniqueHashIndex(a::AbstractArray)
7-
dict = HashDictionary{eltype(a), SingleVector{eltype(keys(a))}}()
7+
dict = Dictionary{eltype(a), SingleVector{eltype(keys(a))}}()
88

99
@inbounds for i in keys(a)
1010
value = a[i]

0 commit comments

Comments
 (0)