@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.
|
static BigtableInstanceClient |
createInstanceClient(BigtableOptions options)
Deprecated.
|
static io.grpc.ManagedChannel |
createNettyChannel(String host,
BigtableOptions options,
boolean useDirectPath,
io.grpc.ClientInterceptor... interceptors)
For internal use only - public for technical reasons.
|
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
|
public BigtableSession(BigtableOptions opts) throws IOException
opts
- a BigtableOptions
object.IOException
- if any.@InternalApi(value="For internal usage only") public static io.grpc.ManagedChannel createNettyChannel(String host, BigtableOptions options, boolean useDirectPath, 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
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.