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

Major refactoring of package structure #189

Merged
merged 8 commits into from
Apr 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
CR
  • Loading branch information
lintool committed Apr 5, 2018
commit a46ce3b76c1c97377ef60e57c379fc6f75ea7814
19 changes: 18 additions & 1 deletion src/main/scala/io/archivesunleashed/matchbox/package.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io.archivesunleashed

import java.io.IOException
@@ -6,7 +23,7 @@ import java.security.MessageDigest
import scala.xml.Utility._

/**
* Created by jimmylin on 4/4/18.
* Package object which supplies implicits providing common UDF-related functionalities.
*/
package object matchbox {
implicit class WWWLink(s: String) {
20 changes: 20 additions & 0 deletions src/main/scala/io/archivesunleashed/package.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Archives Unleashed Toolkit (AUT):
* An open-source platform for analyzing web archives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package io

import io.archivesunleashed.data.{ArchiveRecordWritable, ArchiveRecordInputFormat}
@@ -14,6 +31,9 @@ import org.json4s.jackson.JsonMethods._
import scala.reflect.ClassTag
import scala.util.matching.Regex

/**
* Package object which supplies implicits to augment generic RDDs with AUT-specific transformations.
*/
package object archivesunleashed {
object RecordLoader {
def loadArchives(path: String, sc: SparkContext): RDD[ArchiveRecord] =