@Deprecated public class Lock extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Lock.Options
Deprecated.
Constructs a lock options for a set of Hive ACID tables from which we wish to read.
|
| Constructor and Description |
|---|
Lock(IMetaStoreClient metaStoreClient,
Lock.Options options)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Deprecated.
Attempts to acquire a read lock on the table, returns if successful, throws exception otherwise.
|
void |
acquire(long transactionId)
Deprecated.
Attempts to acquire a read lock on the table, returns if successful, throws exception otherwise.
|
String |
getUser()
Deprecated.
|
void |
release()
Deprecated.
Attempts to release the read lock on the table.
|
String |
toString()
Deprecated.
|
public Lock(IMetaStoreClient metaStoreClient, Lock.Options options)
public void acquire()
throws LockException
LockExceptionpublic void acquire(long transactionId)
throws LockException
LockExceptionpublic void release()
throws LockException
LockExceptionpublic String getUser()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.