java.lang.Object
com.darkcollective.relix.embed.Sandbox.Builder
- Enclosing class:
Sandbox
Assembles a closed sandbox.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbaseDirectory(Path directory) Sets the directory relative paths in the declarations resolve against.build()Builds the sandbox.declarations(String relixText) Sets the.relixtext installed when a session is built: the external declarations users may reach, and any fixed data.maxFixpointRounds(int rounds) Limits the rounds one recursion may run; seeRelix.Builder.maxFixpointRounds(int).maxInputChars(int chars) Limits the length of the text one call may pass.maxMaterializedRows(int rows) Limits the rows one blocking operator may buffer; seeRelix.Builder.maxMaterializedRows(int).maxOutputRows(int rows) Limits the rows one query returns.maxProcessedRows(long rows) Limits the work one execution may do, counted as rows passed from one operator to the next; seeRelix.Builder.maxProcessedRows(long).Limits how long one execution may run; seeRelix.Builder.timeout(Duration).
-
Method Details
-
declarations
Sets the.relixtext installed when a session is built: the external declarations users may reach, and any fixed data.- Parameters:
relixText- the declarations; must not be null- Returns:
- this builder, for chaining
- Since:
- 1.0
-
baseDirectory
Sets the directory relative paths in the declarations resolve against.- Parameters:
directory- the directory; must not be null- Returns:
- this builder, for chaining
- Since:
- 1.0
-
maxInputChars
Limits the length of the text one call may pass.- Parameters:
chars- the most characters; must be at least 1- Returns:
- this builder, for chaining
- Since:
- 1.0
-
maxOutputRows
Limits the rows one query returns. A longer result is cut, and the cut is reported.- Parameters:
rows- the most rows; must be at least 1- Returns:
- this builder, for chaining
- Since:
- 1.0
-
maxMaterializedRows
Limits the rows one blocking operator may buffer; seeRelix.Builder.maxMaterializedRows(int).- Parameters:
rows- the most rows; must be at least 1- Returns:
- this builder, for chaining
- Since:
- 1.0
-
maxFixpointRounds
Limits the rounds one recursion may run; seeRelix.Builder.maxFixpointRounds(int).- Parameters:
rounds- the most rounds; must be at least 1- Returns:
- this builder, for chaining
- Since:
- 1.0
-
maxProcessedRows
Limits the work one execution may do, counted as rows passed from one operator to the next; seeRelix.Builder.maxProcessedRows(long).- Parameters:
rows- the most rows processed; must be at least 1- Returns:
- this builder, for chaining
- Since:
- 1.0
-
timeout
Limits how long one execution may run; seeRelix.Builder.timeout(Duration).- Parameters:
timeout- the longest one execution may run; must be positive- Returns:
- this builder, for chaining
- Since:
- 1.0
-
build
Builds the sandbox.- Returns:
- a closed sandbox
- Since:
- 1.0
-