Class DefaultWithPath
java.lang.Object
com.couchbase.client.java.query.dsl.path.AbstractPath
com.couchbase.client.java.query.dsl.path.index.DefaultWithPath
- Direct Known Subclasses:
DefaultUsingWithPath
@Experimental @Private public class DefaultWithPath extends AbstractPath implements WithPath
See
WithPath
.- Since:
- 2.2
- Author:
- Simon Baslé
-
Constructor Summary
Constructors Constructor Description DefaultWithPath(AbstractPath parent)
-
Method Summary
Modifier and Type Method Description Statement
withDefer()
Specify that the index creation should be deferred to later, allowing to create multiple index and then build them all at once in one scan/swipe.Statement
withDeferAndNode(String nodeName)
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node on which to create a GSI index.Statement
withDeferAndNodes(String... nodeNames)
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node(s) on which to create a GSI index.Statement
withDeferAndNodes(Collection<String> nodeNames)
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node(s) on which to create a GSI index.Statement
withNode(String nodeName)
Specify on which node to create a GSI index.Statement
withNodes(String... nodeNames)
Specify on which node(s) to create a GSI index.Statement
withNodes(Collection<String> nodeNames)
Specify on which node(s) to create a GSI index.Methods inherited from class com.couchbase.client.java.query.dsl.path.AbstractPath
element, toString
-
Constructor Details
-
DefaultWithPath
-
-
Method Details
-
withNode
Description copied from interface:WithPath
Specify on which node to create a GSI index. -
withNodes
Description copied from interface:WithPath
Specify on which node(s) to create a GSI index. -
withNodes
Description copied from interface:WithPath
Specify on which node(s) to create a GSI index. -
withDefer
Description copied from interface:WithPath
Specify that the index creation should be deferred to later, allowing to create multiple index and then build them all at once in one scan/swipe. -
withDeferAndNode
Description copied from interface:WithPath
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node on which to create a GSI index.- Specified by:
withDeferAndNode
in interfaceWithPath
- Parameters:
nodeName
- the name of the node on which to create an index.
-
withDeferAndNodes
Description copied from interface:WithPath
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node(s) on which to create a GSI index.- Specified by:
withDeferAndNodes
in interfaceWithPath
- Parameters:
nodeNames
- one or more node names on which to create an index (at least one should be provided).
-
withDeferAndNodes
Description copied from interface:WithPath
Sets both index creation supported options : specify that the index creation should be deferred and give the name of the node(s) on which to create a GSI index.- Specified by:
withDeferAndNodes
in interfaceWithPath
- Parameters:
nodeNames
- a collection of one or more node names on which to create an index (should not be empty).
-