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
SeeWithPath.- Since:
- 2.2
- Author:
- Simon Baslé
-
-
Constructor Summary
Constructors Constructor Description DefaultWithPath(AbstractPath parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementwithDefer()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.StatementwithDeferAndNode(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.StatementwithDeferAndNodes(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.StatementwithDeferAndNodes(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.StatementwithNode(String nodeName)Specify on which node to create a GSI index.StatementwithNodes(String... nodeNames)Specify on which node(s) to create a GSI index.StatementwithNodes(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 Detail
-
DefaultWithPath
public DefaultWithPath(AbstractPath parent)
-
-
Method Detail
-
withNode
public Statement withNode(String nodeName)
Description copied from interface:WithPathSpecify on which node to create a GSI index.
-
withNodes
public Statement withNodes(String... nodeNames)
Description copied from interface:WithPathSpecify on which node(s) to create a GSI index.
-
withNodes
public Statement withNodes(Collection<String> nodeNames)
Description copied from interface:WithPathSpecify on which node(s) to create a GSI index.
-
withDefer
public Statement withDefer()
Description copied from interface:WithPathSpecify 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
public Statement withDeferAndNode(String nodeName)
Description copied from interface:WithPathSets 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:
withDeferAndNodein interfaceWithPath- Parameters:
nodeName- the name of the node on which to create an index.
-
withDeferAndNodes
public Statement withDeferAndNodes(String... nodeNames)
Description copied from interface:WithPathSets 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:
withDeferAndNodesin interfaceWithPath- Parameters:
nodeNames- one or more node names on which to create an index (at least one should be provided).
-
withDeferAndNodes
public Statement withDeferAndNodes(Collection<String> nodeNames)
Description copied from interface:WithPathSets 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:
withDeferAndNodesin interfaceWithPath- Parameters:
nodeNames- a collection of one or more node names on which to create an index (should not be empty).
-
-