@InternalExtensionOnly public class BigtableSession extends Object implements Closeable
The following functionality is handled by this class:
Constructor and Description |
---|
BigtableSession(BigtableOptions opts)
Constructor for BigtableSession.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
BulkMutation |
createBulkMutation(BigtableTableName tableName)
createBulkMutation.
|
IBulkMutation |
createBulkMutationWrapper(BigtableTableName tableName)
For internal use only - public for technical reasons.
|
BulkRead |
createBulkRead(BigtableTableName tableName)
createBulkRead.
|
protected io.grpc.ManagedChannel |
createChannelPool(ChannelPool.ChannelFactory channelFactory,
int count)
Deprecated.
Channel creation is now considered an internal implementation detail channel
creation methods will be removed from the public surface in the future
|
static io.grpc.ManagedChannel |
createChannelPool(String host,
BigtableOptions options)
Deprecated.
Channel creation is now considered an internal implementation detail channel
creation methods will be removed from the public surface in the future
|
static io.grpc.ManagedChannel |
createChannelPool(String host,
BigtableOptions options,
int count)
Deprecated.
Channel creation is now considered an internal implementation detail channel
creation methods will be removed in the future
|
protected io.grpc.ManagedChannel |
createChannelPool(String hostString,
int count)
Deprecated.
Channel creation is now considered an internal implementation detail channel
creation methods will be removed from the public surface in the future
|
static BigtableInstanceClient |
createInstanceClient(BigtableOptions options)
Deprecated.
|
protected io.grpc.ManagedChannel |
createManagedPool(String host,
int channelCount)
Deprecated.
Channel creation is now considered an internal implementation detail channel
creation methods will be removed from the public surface in the future
|
static io.grpc.ManagedChannel |
createNettyChannel(String host,
BigtableOptions options,
io.grpc.ClientInterceptor... interceptors)
For internal use only - public for technical reasons.
|
Map<String,com.google.api.gax.rpc.ClientContext> |
getCachedClientContexts()
Getter for the field
cachedClientContexts . |
BigtableClusterName |
getClusterName()
Snapshot operations need various aspects of a
BigtableClusterName . |
BigtableDataClient |
getDataClient()
Getter for the field
dataClient . |
IBigtableDataClient |
getDataClientWrapper()
Getter for the field
clientWrapper . |
BigtableInstanceClient |
getInstanceAdminClient()
Getter for the field
instanceAdminClient . |
BigtableOptions |
getOptions()
Getter for the field
options . |
BigtableTableAdminClient |
getTableAdminClient()
Getter for the field
tableAdminClient . |
IBigtableTableAdminClient |
getTableAdminClientWrapper()
Initializes bigtableTableAdminClient based on flag to use GCJ adapter, available in
BigtableOptions . |
public BigtableSession(BigtableOptions opts) throws IOException
opts
- a BigtableOptions
object.IOException
- if any.@Deprecated protected io.grpc.ManagedChannel createManagedPool(String host, int channelCount) throws IOException
IOException
@Deprecated protected io.grpc.ManagedChannel createChannelPool(String hostString, int count) throws IOException
IOException
@Deprecated @InternalApi(value="For internal usage only") protected io.grpc.ManagedChannel createChannelPool(ChannelPool.ChannelFactory channelFactory, int count) throws IOException
IOException
@Deprecated @InternalApi(value="For internal usage only") public static io.grpc.ManagedChannel createChannelPool(String host, BigtableOptions options) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
@Deprecated @InternalApi(value="For internal usage only") public static io.grpc.ManagedChannel createChannelPool(String host, BigtableOptions options, int count) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
@InternalApi(value="For internal usage only") public static io.grpc.ManagedChannel createNettyChannel(String host, BigtableOptions options, io.grpc.ClientInterceptor... interceptors) throws SSLException
SSLException
public BigtableClusterName getClusterName() throws IOException
BigtableClusterName
. This method gets a
clusterId from either a lookup (projectId and instanceId translate to a single clusterId when
an instance has only one cluster).IOException
public BigtableDataClient getDataClient()
dataClient
.BigtableDataClient
object.@InternalApi(value="For internal usage only") public IBigtableDataClient getDataClientWrapper()
clientWrapper
.
For internal use only - public for technical reasons.
Please use getDataClient()
as a public alternative.
public BulkMutation createBulkMutation(BigtableTableName tableName)
tableName
- a BigtableTableName
object.BulkMutation
object.@InternalApi(value="For internal usage only") public IBulkMutation createBulkMutationWrapper(BigtableTableName tableName)
Please use createBulkMutation(BigtableTableName)
as a public
alternative.
public BulkRead createBulkRead(BigtableTableName tableName)
tableName
- a BigtableTableName
object.BulkRead
object.public BigtableTableAdminClient getTableAdminClient() throws IOException
tableAdminClient
.BigtableTableAdminClient
object.IOException
- if any.@InternalApi(value="For internal usage only") public IBigtableTableAdminClient getTableAdminClientWrapper() throws IOException
BigtableOptions
.
For internal use only - public for technical reasons.
Please use getTableAdminClient()
as a public alternative.
IOException
public BigtableInstanceClient getInstanceAdminClient() throws IOException
instanceAdminClient
.BigtableInstanceClient
object.IOException
- if any.@Deprecated @InternalApi(value="For internal usage only") public static BigtableInstanceClient createInstanceClient(BigtableOptions options) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public BigtableOptions getOptions()
options
.BigtableOptions
object.@InternalApi(value="VisibleForTesting") public Map<String,com.google.api.gax.rpc.ClientContext> getCachedClientContexts()
cachedClientContexts
.
For internal usage only - public for technical reasons.
ClientContext
object.