Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
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

More df implementations #399

merged 19 commits into from Jan 7, 2020

Conversation

@SinghGursimran
Copy link
Contributor

SinghGursimran commented Jan 7, 2020

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

This comment has been minimized.

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 approved these changes Jan 7, 2020
@ruebot ruebot merged commit be15375 into archivesunleashed:master Jan 7, 2020
3 checks passed
3 checks passed
codecov/patch 100% of diff hit (target 77.19%)
Details
codecov/project 77.29% (+0.1%) compared to d5c7bf7
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.