public class LockComponentBuilder extends Object
LockComponent
sConstructor and Description |
---|
LockComponentBuilder() |
Modifier and Type | Method and Description |
---|---|
LockComponent |
build()
Get the constructed lock component.
|
LockComponentBuilder |
setDbName(String dbName)
Set the database name.
|
LockComponentBuilder |
setExclusive()
Set the lock to be exclusive.
|
LockComponentBuilder |
setExclWrite()
Set the lock to be excl_write.
|
LockComponentBuilder |
setIsDynamicPartitionWrite(boolean t) |
LockComponentBuilder |
setIsTransactional(boolean t) |
LockComponentBuilder |
setLock(LockType type) |
LockComponentBuilder |
setOperationType(DataOperationType dop) |
LockComponentBuilder |
setPartitionName(String partitionName)
Set the partition name.
|
LockComponentBuilder |
setSharedRead()
Set the lock to be shared_read.
|
LockComponentBuilder |
setSharedWrite()
Set the lock to be shared_write.
|
LockComponentBuilder |
setTableName(String tableName)
Set the table name.
|
public LockComponentBuilder setExclusive()
public LockComponentBuilder setExclWrite()
public LockComponentBuilder setSharedWrite()
public LockComponentBuilder setSharedRead()
public LockComponentBuilder setDbName(String dbName)
dbName
- database namepublic LockComponentBuilder setOperationType(DataOperationType dop)
public LockComponentBuilder setIsTransactional(boolean t)
public LockComponentBuilder setTableName(String tableName)
tableName
- table namepublic LockComponentBuilder setPartitionName(String partitionName)
partitionName
- partition namepublic LockComponentBuilder setIsDynamicPartitionWrite(boolean t)
public LockComponent build()
public LockComponentBuilder setLock(LockType type)
Copyright © 2022 The Apache Software Foundation. All rights reserved.