Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Serializable APIs for DataFrames #396

Merged
merged 17 commits into from
Dec 29, 2019

Conversation

SinghGursimran
Copy link
Collaborator

More Serializable APIs for DataFrames

#223

For Testing:

keepHttpStatusDF

import io.archivesunleashed._
import io.archivesunleashed.df._

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.all()
			.select($"url",$"crawl_date",$"HttpStatus")
			.keepHttpStatusDF(Set("200"))
			.show(10,false)

keepDateDF

import io.archivesunleashed._
import io.archivesunleashed.df._

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.webpages()
			.select($"url",$"crawl_date")
			.keepDateDF(List("04"),"MM")
			.show(10,false)

keepUrlsDF

import io.archivesunleashed._
import io.archivesunleashed.df._

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.all()
			.select($"url",$"crawl_date",$"HttpStatus")
			.keepUrlsDF(Set("http://www.archive.org/","http://www.archive.org/robots.txt"))
			.show(10,false)

keepDomainsDF

import io.archivesunleashed._
import io.archivesunleashed.df._

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.all()
			.select($"url",$"crawl_date",$"HttpStatus")
			.keepDomainsDF(Set("www.archive.org"))
			.show(10,false)

@codecov
Copy link

codecov bot commented Dec 29, 2019

Codecov Report

Merging #396 into master will increase coverage by 0.07%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##           master     #396      +/-   ##
==========================================
+ Coverage   77.11%   77.19%   +0.07%     
==========================================
  Files          40       40              
  Lines        1486     1495       +9     
  Branches      280      280              
==========================================
+ Hits         1146     1154       +8     
- Misses        217      218       +1     
  Partials      123      123

@ruebot ruebot merged commit b915f82 into archivesunleashed:master Dec 29, 2019
ruebot added a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 2020
ianmilligan1 pushed a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 2020
ruebot added a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 2020
ianmilligan1 pushed a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 2020
ruebot added a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 2020
ianmilligan1 pushed a commit to archivesunleashed/aut-docs that referenced this pull request Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants