Skip to content

Commit

Permalink
do a rename
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbai00 committed Dec 13, 2024
1 parent b5d6a20 commit 5eba84f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package edu.uci.ics.amber.core.storage.result

import edu.uci.ics.amber.core.storage.model.VirtualDocument
import edu.uci.ics.amber.core.storage.result.PartitionedItemizedFileDocument.getPartitionURI
import edu.uci.ics.amber.core.storage.result.PartitionedFileDocument.getPartitionURI
import edu.uci.ics.amber.util.PathUtils.workflowResultsRootPath
import org.apache.commons.vfs2.VFS

import java.net.URI
import java.util.concurrent.locks.ReentrantLock

object PartitionedItemizedFileDocument {
object PartitionedFileDocument {

/**
* Utility function to generate the partition URI by index.
Expand All @@ -18,7 +18,7 @@ object PartitionedItemizedFileDocument {
}
}

class PartitionedItemizedFileDocument[R <: VirtualDocument[T], T >: Null <: AnyRef](
class PartitionedFileDocument[R <: VirtualDocument[T], T >: Null <: AnyRef](
val id: String,
val numOfPartition: Int,
createPartition: URI => R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package edu.uci.ics.amber.core.storage.result

import edu.uci.ics.amber.core.storage.result.PartitionedItemizedFileDocument.getPartitionURI
import edu.uci.ics.amber.core.storage.result.PartitionedFileDocument.getPartitionURI
import org.apache.commons.vfs2.{FileObject, VFS}
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.BeforeAndAfter
import org.scalatest.concurrent.ScalaFutures.convertScalaFuture
import org.scalatest.matchers.should.Matchers

class PartitionedItemizedFileDocumentSpec extends AnyFlatSpec with Matchers with BeforeAndAfter {
class PartitionedFileDocumentSpec extends AnyFlatSpec with Matchers with BeforeAndAfter {

var partitionDocument: PartitionedItemizedFileDocument[ItemizedFileDocument[String], String] = _
var partitionDocument: PartitionedFileDocument[ItemizedFileDocument[String], String] = _
val numOfPartitions = 3
val partitionId: String = "partition_doc_test"

before {
// Initialize the PartitionDocument with a base ID and number of partitions
partitionDocument = new PartitionedItemizedFileDocument[ItemizedFileDocument[String], String](
partitionDocument = new PartitionedFileDocument[ItemizedFileDocument[String], String](
partitionId,
numOfPartitions,
uri => new ItemizedFileDocument[String](uri)
Expand Down

0 comments on commit 5eba84f

Please sign in to comment.