public class ReadSessionCreator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_PARALLELISM |
static int |
DEFAULT_MIN_PARALLELISM_FACTOR |
static int |
MINIMAL_PARALLELISM |
| Constructor and Description |
|---|
ReadSessionCreator(ReadSessionCreatorConfig config,
BigQueryClient bigQueryClient,
BigQueryClientFactory bigQueryReadClientFactory) |
| Modifier and Type | Method and Description |
|---|---|
ReadSessionResponse |
create(com.google.cloud.bigquery.TableId table,
com.google.common.collect.ImmutableList<String> selectedFields,
Optional<String> filter)
Creates a new ReadSession for parallel reads.
|
com.google.cloud.bigquery.TableInfo |
getActualTable(com.google.cloud.bigquery.TableInfo table,
com.google.common.collect.ImmutableList<String> requiredColumns,
Optional<String> filter) |
boolean |
isInputTableAView(com.google.cloud.bigquery.TableInfo table) |
public static final int DEFAULT_MAX_PARALLELISM
public static final int MINIMAL_PARALLELISM
public static final int DEFAULT_MIN_PARALLELISM_FACTOR
public ReadSessionCreator(ReadSessionCreatorConfig config, BigQueryClient bigQueryClient, BigQueryClientFactory bigQueryReadClientFactory)
public ReadSessionResponse create(com.google.cloud.bigquery.TableId table, com.google.common.collect.ImmutableList<String> selectedFields, Optional<String> filter)
Some attributes are governed by the ReadSessionCreatorConfig that this object was
constructed with.
table - The table to create the session for.selectedFields - Projection : the fields (e.g. columns) to returnfilter - Selection: how to filter rows that match this filterpublic com.google.cloud.bigquery.TableInfo getActualTable(com.google.cloud.bigquery.TableInfo table,
com.google.common.collect.ImmutableList<String> requiredColumns,
Optional<String> filter)
public boolean isInputTableAView(com.google.cloud.bigquery.TableInfo table)
Copyright © 2024. All rights reserved.