object QueryOptions
Helper object to provide type-safe keys and values for Spark SQL query options.
- Alphabetic
- By Inheritance
- QueryOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
Bucket: String
Option Key: The name of the bucket, which overrides the implicit bucket configured.
-
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
-
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.
-
val
ConnectionIdentifier: String
Option Key: Instead of using the "default" connection, allows to connect to a different cluster.
-
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.
-
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
-
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
-
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.
-
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).
-
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.
- val PartitionCount: String
- val PartitionLowerBound: String
- val PartitionUpperBound: String
-
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.
-
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.
-
val
ScanConsistency: String
Option Key: Allows to override the scan consistency for the query performed.
-
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.
-
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.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated