forked from lbilli/Jib.jl
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added necessary parameters to handle multiple sink formats. Functiona…
…lity unchanged. Transparent if you pass DataFrame to you initial processing method.
- Loading branch information
1 parent
a24e0a1
commit db4b9c6
Showing
10 changed files
with
179 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module DataFramesExt | ||
|
||
import Jib | ||
|
||
using DataFrames | ||
|
||
function Jib.Reader.fill_table(cols, n::Int, it, Tab::Type{<:DataFrame}) | ||
|
||
df = Tab([k => Vector{T}(undef, n) for (k, T) ∈ pairs(cols)]; | ||
copycols=false) | ||
|
||
nr, nc = size(df) | ||
|
||
for r ∈ 1:nr, c ∈ 1:nc | ||
df[r, c] = Jib.Reader.pop(it) | ||
end | ||
|
||
df | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module Jib | ||
|
||
using DataFrames, | ||
Sockets | ||
using Sockets | ||
|
||
include("client.jl") | ||
include("enums.jl") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.