public class Lock extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Lock.Options
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) |
Modifier and Type | Method and Description |
---|---|
void |
acquire()
Attempts to acquire a read lock on the table, returns if successful, throws exception otherwise.
|
void |
acquire(long transactionId)
Attempts to acquire a read lock on the table, returns if successful, throws exception otherwise.
|
String |
getUser() |
void |
release()
Attempts to release the read lock on the table.
|
String |
toString() |
public Lock(IMetaStoreClient metaStoreClient, Lock.Options options)
public void acquire() throws LockException
LockException
public void acquire(long transactionId) throws LockException
LockException
public void release() throws LockException
LockException
public String getUser()
Copyright © 2016 The Apache Software Foundation. All rights reserved.