Object

com.mongodb.spark.rdd.partitioner

PartitionerHelper

Related Doc: package partitioner

Permalink

object PartitionerHelper

:: DeveloperApi ::

Helper methods for partitioner implementations

Annotations
@DeveloperApi()
Since

1.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PartitionerHelper
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def collStats(connector: MongoConnector, readConfig: ReadConfig): BsonDocument

    Permalink

    Runs the collStats command and returns the results

    Runs the collStats command and returns the results

    connector

    the MongoConnector

    readConfig

    the readConfig

    returns

    the collStats result

  7. def createBoundaryQuery(key: String, lower: BsonValue, upper: BsonValue): BsonDocument

    Permalink

    Creates the upper and lower boundary query for the given key

    Creates the upper and lower boundary query for the given key

    key

    the key that represents the values that can be partitioned

    lower

    the value of the lower bound

    upper

    the value of the upper bound

    returns

    the document containing the partition bounds

  8. def createPartitions(partitionKey: String, splitKeys: Seq[BsonValue], locations: Seq[String] = Nil, addMinMax: Boolean = true): Array[MongoPartition]

    Permalink

    Creates partitions using a single Seq of documents representing the right handside of partitions

    Creates partitions using a single Seq of documents representing the right handside of partitions

    partitionKey

    the key representing the partition most likely the _id.

    splitKeys

    the documents representing a split

    locations

    the optional server hostnames for the data

    addMinMax

    add min and maxkey query bounds.

  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getSplitVectorRangeQuery(partitionKey: String, pipeline: Array[BsonDocument]): (BsonValue, BsonValue)

    Permalink

    Checks an aggregation pipeline to see if it starts with a range based query that is suitable for the SplitVector command.

    Checks an aggregation pipeline to see if it starts with a range based query that is suitable for the SplitVector command.

    If it does it returns the $match filter otherwise None

    pipeline

    the aggregation pipeline

    returns

    the min and max keys for the pipeline

    Since

    2.1

  14. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  16. def locations(connector: MongoConnector): Seq[String]

    Permalink

    Get the locations of the Mongo hosts

    Get the locations of the Mongo hosts

    connector

    the MongoConnector

    returns

    the locations

  17. def matchQuery(pipeline: Array[BsonDocument]): BsonDocument

    Permalink

    Returns the head $match from a pipeline

    Returns the head $match from a pipeline

    pipeline

    the users pipeline

    returns

    the head $match or an empty BsonDocument.

  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def setLastBoundaryToLessThanOrEqualTo(partitionKey: String, partitions: Array[MongoPartition]): Array[MongoPartition]

    Permalink

    Sets the final boundary to use $lte rather than $lt so that boundaries with users provided queries have the correct upper bound

    Sets the final boundary to use $lte rather than $lt so that boundaries with users provided queries have the correct upper bound

    partitionKey

    the partition key

    partitions

    the partitions

    returns

    the updated partitions

    Since

    2.1

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped