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 df implementations #399

Merged
merged 19 commits into from
Jan 7, 2020
Merged

Conversation

SinghGursimran
Copy link
Collaborator

More df implementations

#223

DiscardHttpStatus

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

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

keepMimeTypes

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

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.all()
			.keepMimeTypesDF(Set("text/html"))
			.select($"mime_type_web_server")
			.show(10,false)

keepMimeTypesTika

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

RecordLoader.loadArchives("./src/test/resources/arc/example.arc.gz",sc)
			.all()
			.keepMimeTypesTikaDF(Set("image/jpeg"))
			.select($"mime_type_tika")
			.show(10,false)

@codecov
Copy link

codecov bot commented Jan 7, 2020

Codecov Report

Merging #399 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #399     +/-   ##
=========================================
+ Coverage   77.19%   77.29%   +0.1%     
=========================================
  Files          40       40             
  Lines        1495     1502      +7     
  Branches      280      281      +1     
=========================================
+ Hits         1154     1161      +7     
  Misses        218      218             
  Partials      123      123

@ruebot ruebot merged commit be15375 into archivesunleashed:master Jan 7, 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 13, 2020
ruebot added a commit to archivesunleashed/aut-docs that referenced this pull request Jan 13, 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