Class ToBXQuery
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.stream.ToBXQuery
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke(IBoxContext context, ArgumentsScope arguments) Collect a Java stream into a BoxLang Query.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
ToBXQuery
public ToBXQuery()Constructor
-
-
Method Details
-
_invoke
Collect a Java stream into a BoxLang Query. Provide a template query to match the columns and types of the stream. Once the stream collects, it will return a Query object that can be used in BoxLang.Usage
// Create a query template templateQuery = queryNew( "id,name,age" ); // Create a stream from an array of structs stream = [ {id:1, name:"John", age:30}, {id:2, name:"Jane", age:25} ].toStream(); // Convert the stream to a query result = stream.toBXQuery( templateQuery );
-