-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from marklogic/feature/javadoc
Initial Javadoc configuration
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
flux-cli/src/main/java/com/marklogic/flux/api/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* <p> | ||
* All Flux functionality can be accessed starting with the | ||
* {@link com.marklogic.flux.api.Flux} class, which provides a static method corresponding to each | ||
* command available in the Flux CLI. Each method returns a subclass of the | ||
* {@link com.marklogic.flux.api.Executor} interface. The subclass has {@code from} and {@code to} methods that | ||
* allow for options to be defined for how data is read by the command and how data is written or processed by the | ||
* command. | ||
* </p> | ||
* <p> | ||
* To support a fluent approach where methods on a {@link com.marklogic.flux.api.Executor} can be chained together, | ||
* the {@code from} and {@code to} methods accept an instance of {@code java.util.function.Consumer} that provides | ||
* access to a command-specific options object. The following example demonstrates this pattern in action: | ||
* </p> | ||
* <pre> | ||
* Flux.importGenericFiles() | ||
* .from(options -> options | ||
* .path("/path/to/files") | ||
* .compressionType("zip")) | ||
* .connectionString("user:password@host:8000") | ||
* .to(options -> options | ||
* .collections("my-files") | ||
* .permissions("rest-reader,read,rest-writer,update")) | ||
* .execute(); | ||
* </pre> | ||
*/ | ||
package com.marklogic.flux.api; | ||
|
||
|