Class

com.astrolabsoftware.spark3d.spatialPartitioning

SpatialPartitioner

Related Doc: package spatialPartitioning

Permalink

abstract class SpatialPartitioner extends Partitioner with Serializable

Abstract class for partitioning the 3D space. This class extends the Spark Partitioner class, and any new 3D partitioner must extend in turn the SpatialPartitioner class.

Linear Supertypes
Partitioner, Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SpatialPartitioner
  2. Partitioner
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SpatialPartitioner(grids: List[Shape3D])

    Permalink

    grids

    : (List[Shape3D]) List of Shape3D objects which partition the space.

Abstract Value Members

  1. abstract def numPartitions: Int

    Permalink
    Definition Classes
    Partitioner

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getNeighborNodes[T <: Shape3D](spatialObject: T): List[(Int, Shape3D)]

    Permalink

    Gets the partitions which are the neighbors of the partitions which contain the input object.

    Gets the partitions which are the neighbors of the partitions which contain the input object.

    spatialObject

    input object for which the neighbors are to be found

    returns

    list of Tuple of neighbor partitions and their index/partition IDs

  11. def getPartition(key: Any): Int

    Permalink

    Method to return the index of a partition

    Method to return the index of a partition

    key

    : (Any) The Key of the partition (Key/Value)

    returns

    (Int) The key of the partition as Int.

    Definition Classes
    SpatialPartitioner → Partitioner
  12. def getPartitionNodes[T <: Shape3D](spatialObject: T): List[(Int, Shape3D)]

    Permalink

    Gets the partitions which contain the input object.

    Gets the partitions which contain the input object.

    spatialObject

    input object for which the containment is to be found

    returns

    list of Tuple of containing partitions and their index/partition IDs

  13. def getSecondaryNeighborNodes[T <: Shape3D](containingNode: T, containingNodeID: Int): List[(Int, Shape3D)]

    Permalink

    Gets the partitions which are the neighbors to the input partition.

    Gets the partitions which are the neighbors to the input partition. Useful when getting secondary neighbors (neighbors to neighbor) of the queryObject.

    containingNode

    The boundary of the Node for which neighbors are to be found.

    containingNodeID

    The index/partition ID of the containingNode

    returns

    list of Tuple of secondary neighbor partitions and their index/partition IDs

  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def placeObject[T <: Shape3D](spatialObject: T): Iterator[(Int, T)]

    Permalink

    Method to place a spatialObject (could a Point3D, a Sphere, and so on) on a grid.

    Method to place a spatialObject (could a Point3D, a Sphere, and so on) on a grid. In practice it will assign a key (Int) to the spatialObject corresponding the partition index. This method must be specifically implemented for each class extending SpatialPartitioner.

    spatialObject

    : (T<:Shape3D) Object of type T = Shape3D, or any extension like Point3D, Sphere, ...

    returns

    (Iterator[Tuple2[Int, T]]) Iterator over a tuple (Key, Object). Key represents the partition number to which the spatialObject T belongs to.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Partitioner

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped