# BatchQueryJob(NativeArray<CommandT>, NativeArray<ResultT>)

> Initializes and returns an instance of BatchQueryJob<CommandT, ResultT>.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Jobs.LowLevel.Unsafe](/engine/6000.5/script-reference/unity/jobs/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

## BatchQueryJob(NativeArray\<T>, NativeArray\<T>)

```csharp
public BatchQueryJob(NativeArray<CommandT> commands, NativeArray<ResultT> results)
```

### Parameters

**** (\[NativeArray\<T>]\(/engine/6000.5/script-reference/unity/collections/nativearray1)): A [NativeArray\<T>](/engine/6000.5/script-reference/unity/collections/nativearray1.md) that contains the commands to execute during a batch. The job that executes the query only reads from this native array, and doesn't write to it.**** (\[NativeArray\<T>]\(/engine/6000.5/script-reference/unity/collections/nativearray1)): A [NativeArray\<T>](/engine/6000.5/script-reference/unity/collections/nativearray1.md) to contain the results from the commands. The job that executes the query writes to this native array.
