@Internal public class FakeBigQueryServices extends java.lang.Object implements BigQueryServices
Modifier and Type | Class and Description |
---|---|
static class |
FakeBigQueryServices.FakeBigQueryServerStream<T>
An implementation of
BigQueryServerStream which takes a List as the Iterable to simulate a server stream. |
BigQueryServices.BigQueryServerStream<T>, BigQueryServices.DatasetService, BigQueryServices.JobService, BigQueryServices.StorageClient, BigQueryServices.StreamAppendClient
Constructor and Description |
---|
FakeBigQueryServices() |
public FakeBigQueryServices withJobService(BigQueryServices.JobService jobService)
public FakeBigQueryServices withDatasetService(FakeDatasetService datasetService)
public FakeBigQueryServices withStorageClient(BigQueryServices.StorageClient storageClient)
public BigQueryServices.JobService getJobService(BigQueryOptions bqOptions)
BigQueryServices
BigQueryServices.JobService
.getJobService
in interface BigQueryServices
public BigQueryServices.DatasetService getDatasetService(BigQueryOptions bqOptions)
BigQueryServices
BigQueryServices.DatasetService
.getDatasetService
in interface BigQueryServices
public BigQueryServices.StorageClient getStorageClient(BigQueryOptions bqOptions)
BigQueryServices
BigQueryServices.StorageClient
.getStorageClient
in interface BigQueryServices
public static java.lang.String encodeQueryResult(Table table) throws java.io.IOException
java.io.IOException
public static java.lang.String encodeQueryResult(Table table, java.util.List<TableRow> rows) throws java.io.IOException
java.io.IOException
public static KV<Table,java.util.List<TableRow>> decodeQueryResult(java.lang.String queryResult) throws java.io.IOException
java.io.IOException