Packages

o

com.couchbase.spark.query

QueryOptions

object QueryOptions

Helper object to provide type-safe keys and values for Spark SQL query options.

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val Bucket: String

    Option Key: The name of the bucket, which overrides the implicit bucket configured.

  5. val CasFieldName: String

    Option Key: The field name of the document CAS, used to override the default.

    Option Key: The field name of the document CAS, used to override the default.

    Note: This option is only used when OutputCas is set to "true". The default can be located in DefaultConstants.DefaultCasFieldName

  6. val Collection: String

    Option Key: The name of the collection, which overrides the implicit collection (if configured at all).

    Option Key: The name of the collection, which overrides the implicit collection (if configured at all).

    Note: only works against Couchbase Server 7.0 or later.

  7. val ConnectionIdentifier: String

    Option Key: Instead of using the "default" connection, allows to connect to a different cluster.

  8. val Filter: String

    Option Key: a N1QL expression which acts as an additional filter on every query, including schema inference.

    Option Key: a N1QL expression which acts as an additional filter on every query, including schema inference.

    This is usually needed in pre-collection clusters where a predicate needs to be used to always filter the dataset. For example "type = 'airport'", but can be as complex as needed. This filter is always AND-combined with any filters that get pushed down from spark when actually performing the query.

  9. val IdFieldName: String

    Option Key: The field name of the document ID, used to override the default.

    Option Key: The field name of the document ID, used to override the default.

    The default can be located in DefaultConstants.DefaultIdFieldName

  10. val InferLimit: String

    Option Key: The limit of how many records to load during schema inference.

    Option Key: The limit of how many records to load during schema inference.

    The default can be found in DefaultConstants.DefaultInferLimit

  11. val NotBoundedScanConsistency: String

    Option Value: Not bounded scan consistency - to be used with ScanConsistency as the key.

    Option Value: Not bounded scan consistency - to be used with ScanConsistency as the key.

    This is the default and usually does not need to be specified. The query will be executed immediately, and it might not include documents which have just been written and not made it into the index yet.

  12. val OutputCas: String

    Option Key: If the CAS value should be included in the query results.

    Option Key: If the CAS value should be included in the query results.

    The value is a "true" or "false", where "false" is the default (for backwards compatibility).

  13. val PartitionColumn: String

    Option Values: Partitioning.

    Option Values: Partitioning.

    If any of the four following options are set, all must be.

    They will partition a single SQL++ query into multiple queries, so it can be executed by multiple Spark workers.

    As an example, if partitionColumn is set to "id", partitionLowerBound is 0, partitionUpperBound is 1000, and partitionCount is 3, then the multiple queries would look similar to this:

    SELECT [...] WHERE [...] AND id < 334 SELECT [...] WHERE [...] AND (id >= 334 AND id < 667) SELECT [...] WHERE [...] AND id >= 667

    The chosen partitionColumn must support the SQL comparison operators "<" and ">=". Any results where partitionColumn is null or otherwise not matched by those operators, will not be included.

    partitionLowerBound and partitionUpperBound do not bound or limit the results, they simply choose how many results are in each partition.

    partitionCount determines how many partitions the query will be split into.

  14. val PartitionCount: String
  15. val PartitionLowerBound: String
  16. val PartitionUpperBound: String
  17. val PushDownAggregate: String

    Option Key: If aggregates should be allowed to be pushed down by spark into the query engine.

    Option Key: If aggregates should be allowed to be pushed down by spark into the query engine.

    This value is true by default for performance reasons. It is available to be disabled should there be any issues identified in the field.

  18. val RequestPlusScanConsistency: String

    Option Value: Request plus scan consistency - to be used with ScanConsistency as the key.

    Option Value: Request plus scan consistency - to be used with ScanConsistency as the key.

    If this value is set, the indexer will wait until it has caught up to the recent mutations, which will make sure that documents which just have been written are part of the result set.

  19. val ScanConsistency: String

    Option Key: Allows to override the scan consistency for the query performed.

  20. val Scope: String

    Option Key: The name of the scope, which overrides the implicit scope (if configured at all).

    Option Key: The name of the scope, which overrides the implicit scope (if configured at all).

    Note: only works against Couchbase Server 7.0 or later.

  21. val Timeout: String

    Option Key: The timeout to use which overrides the default configured.

    Option Key: The timeout to use which overrides the default configured.

    The value is a string and must be parsable from a scala Duration.

  22. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  23. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  24. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped