From fe5790582539e6695164a88820a8359cebb7469c Mon Sep 17 00:00:00 2001 From: raphasampaio Date: Fri, 20 Sep 2024 16:37:47 -0300 Subject: [PATCH] Project updates --- src/data/vector_map.jl | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/data/vector_map.jl b/src/data/vector_map.jl index 5602df9..8aba15e 100644 --- a/src/data/vector_map.jl +++ b/src/data/vector_map.jl @@ -4,43 +4,43 @@ data::Vector{Vector{Int}} = [] end -function Base.convert(::Type{MapData}, tuple::Tuple{String, String}) - return MapData(collection_to = tuple[1], id = tuple[2]) +function Base.convert(::Type{VectorMapData}, tuple::Tuple{String, String}) + return VectorMapData(collection_to = tuple[1], id = tuple[2]) end -function Base.getindex(parameter::MapData, i::Integer) +function Base.getindex(parameter::VectorMapData, i::Integer) return parameter.data[i] end -function Base.length(parameter::MapData) +function Base.length(parameter::VectorMapData) return length(parameter.data) end -function Base.isempty(parameter::MapData) +function Base.isempty(parameter::VectorMapData) return isempty(parameter.data) end -function Base.iterate(parameter::MapData) +function Base.iterate(parameter::VectorMapData) return iterate(parameter.data) end -function Base.iterate(parameter::PSRBridge.MapData, i::Integer) +function Base.iterate(parameter::PSRBridge.VectorMapData, i::Integer) return iterate(parameter.data, i) end -function raw_data(parameter::MapData) +function raw_data(parameter::VectorMapData) return parameter.data end -function initialize!(parameter::MapData, collection::AbstractCollection, db::DatabaseSQLite; kwargs...) +function initialize!(parameter::VectorMapData, collection::AbstractCollection, db::DatabaseSQLite; kwargs...) parameter.data = PSRI.get_vector_map(inputs.db, collection.id, parameter.collection_to, parameter.id) return nothing end -function update!(parameter::MapData, collection::AbstractCollection, db::DatabaseSQLite; kwargs...) +function update!(parameter::VectorMapData, collection::AbstractCollection, db::DatabaseSQLite; kwargs...) return nothing end -function finalize!(parameter::MapData) +function finalize!(parameter::VectorMapData) return nothing end