PageRenderTime 50ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/release-0.1-rc2/hive/external/ql/src/java/org/apache/hadoop/hive/ql/plan/DDLWork.java

#
Java | 857 lines | 435 code | 128 blank | 294 comment | 0 complexity | 80dde3795a1933c9bcf6f62e02fca555 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. package org.apache.hadoop.hive.ql.plan;
  19. import java.io.Serializable;
  20. import java.util.HashSet;
  21. import org.apache.hadoop.hive.ql.hooks.ReadEntity;
  22. import org.apache.hadoop.hive.ql.hooks.WriteEntity;
  23. /**
  24. * DDLWork.
  25. *
  26. */
  27. public class DDLWork implements Serializable {
  28. private static final long serialVersionUID = 1L;
  29. private CreateIndexDesc createIndexDesc;
  30. private AlterIndexDesc alterIndexDesc;
  31. private DropIndexDesc dropIdxDesc;
  32. private CreateDatabaseDesc createDatabaseDesc;
  33. private SwitchDatabaseDesc switchDatabaseDesc;
  34. private DropDatabaseDesc dropDatabaseDesc;
  35. private CreateTableDesc createTblDesc;
  36. private CreateTableLikeDesc createTblLikeDesc;
  37. private CreateViewDesc createVwDesc;
  38. private DropTableDesc dropTblDesc;
  39. private AlterTableDesc alterTblDesc;
  40. private AlterIndexDesc alterIdxDesc;
  41. private ShowDatabasesDesc showDatabasesDesc;
  42. private ShowTablesDesc showTblsDesc;
  43. private LockTableDesc lockTblDesc;
  44. private UnlockTableDesc unlockTblDesc;
  45. private ShowFunctionsDesc showFuncsDesc;
  46. private ShowLocksDesc showLocksDesc;
  47. private DescFunctionDesc descFunctionDesc;
  48. private ShowPartitionsDesc showPartsDesc;
  49. private DescTableDesc descTblDesc;
  50. private AddPartitionDesc addPartitionDesc;
  51. private AlterTableSimpleDesc alterTblSimpleDesc;
  52. private MsckDesc msckDesc;
  53. private ShowTableStatusDesc showTblStatusDesc;
  54. private ShowIndexesDesc showIndexesDesc;
  55. private DescDatabaseDesc descDbDesc;
  56. private AlterDatabaseDesc alterDbDesc;
  57. private RoleDDLDesc roleDDLDesc;
  58. private GrantDesc grantDesc;
  59. private ShowGrantDesc showGrantDesc;
  60. private RevokeDesc revokeDesc;
  61. private GrantRevokeRoleDDL grantRevokeRoleDDL;
  62. /**
  63. * ReadEntitites that are passed to the hooks.
  64. */
  65. protected HashSet<ReadEntity> inputs;
  66. /**
  67. * List of WriteEntities that are passed to the hooks.
  68. */
  69. protected HashSet<WriteEntity> outputs;
  70. public DDLWork() {
  71. }
  72. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs) {
  73. this.inputs = inputs;
  74. this.outputs = outputs;
  75. }
  76. public DDLWork(CreateIndexDesc createIndex) {
  77. this.createIndexDesc = createIndex;
  78. }
  79. public DDLWork(AlterIndexDesc alterIndex) {
  80. this.alterIndexDesc = alterIndex;
  81. }
  82. /**
  83. * @param createDatabaseDesc
  84. * Create Database descriptor
  85. */
  86. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  87. CreateDatabaseDesc createDatabaseDesc) {
  88. this(inputs, outputs);
  89. this.createDatabaseDesc = createDatabaseDesc;
  90. }
  91. /**
  92. * @param dropDatabaseDesc
  93. * Drop Database descriptor
  94. */
  95. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  96. DescDatabaseDesc descDatabaseDesc) {
  97. this(inputs, outputs);
  98. this.descDbDesc = descDatabaseDesc;
  99. }
  100. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  101. AlterDatabaseDesc alterDbDesc) {
  102. this(inputs, outputs);
  103. this.alterDbDesc = alterDbDesc;
  104. }
  105. public DescDatabaseDesc getDescDatabaseDesc() {
  106. return descDbDesc;
  107. }
  108. /**
  109. * @param dropDatabaseDesc
  110. * Drop Database descriptor
  111. */
  112. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  113. DropDatabaseDesc dropDatabaseDesc) {
  114. this(inputs, outputs);
  115. this.dropDatabaseDesc = dropDatabaseDesc;
  116. }
  117. /**
  118. * @param switchDatabaseDesc
  119. * Switch Database descriptor
  120. */
  121. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  122. SwitchDatabaseDesc switchDatabaseDesc) {
  123. this(inputs, outputs);
  124. this.switchDatabaseDesc = switchDatabaseDesc;
  125. }
  126. /**
  127. * @param alterTblDesc
  128. * alter table descriptor
  129. */
  130. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  131. AlterTableDesc alterTblDesc) {
  132. this(inputs, outputs);
  133. this.alterTblDesc = alterTblDesc;
  134. }
  135. /**
  136. * @param alterIdxDesc
  137. * alter index descriptor
  138. */
  139. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  140. AlterIndexDesc alterIdxDesc) {
  141. this(inputs, outputs);
  142. this.alterIdxDesc = alterIdxDesc;
  143. }
  144. /**
  145. * @param createTblDesc
  146. * create table descriptor
  147. */
  148. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  149. CreateTableDesc createTblDesc) {
  150. this(inputs, outputs);
  151. this.createTblDesc = createTblDesc;
  152. }
  153. /**
  154. * @param createTblLikeDesc
  155. * create table like descriptor
  156. */
  157. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  158. CreateTableLikeDesc createTblLikeDesc) {
  159. this(inputs, outputs);
  160. this.createTblLikeDesc = createTblLikeDesc;
  161. }
  162. /**
  163. * @param createVwDesc
  164. * create view descriptor
  165. */
  166. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  167. CreateViewDesc createVwDesc) {
  168. this(inputs, outputs);
  169. this.createVwDesc = createVwDesc;
  170. }
  171. /**
  172. * @param dropTblDesc
  173. * drop table descriptor
  174. */
  175. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  176. DropTableDesc dropTblDesc) {
  177. this(inputs, outputs);
  178. this.dropTblDesc = dropTblDesc;
  179. }
  180. /**
  181. * @param descTblDesc
  182. */
  183. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  184. DescTableDesc descTblDesc) {
  185. this(inputs, outputs);
  186. this.descTblDesc = descTblDesc;
  187. }
  188. /**
  189. * @param showDatabasesDesc
  190. */
  191. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  192. ShowDatabasesDesc showDatabasesDesc) {
  193. this(inputs, outputs);
  194. this.showDatabasesDesc = showDatabasesDesc;
  195. }
  196. /**
  197. * @param showTblsDesc
  198. */
  199. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  200. ShowTablesDesc showTblsDesc) {
  201. this(inputs, outputs);
  202. this.showTblsDesc = showTblsDesc;
  203. }
  204. /**
  205. * @param lockTblDesc
  206. */
  207. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  208. LockTableDesc lockTblDesc) {
  209. this(inputs, outputs);
  210. this.lockTblDesc = lockTblDesc;
  211. }
  212. /**
  213. * @param unlockTblDesc
  214. */
  215. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  216. UnlockTableDesc unlockTblDesc) {
  217. this(inputs, outputs);
  218. this.unlockTblDesc = unlockTblDesc;
  219. }
  220. /**
  221. * @param showFuncsDesc
  222. */
  223. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  224. ShowFunctionsDesc showFuncsDesc) {
  225. this(inputs, outputs);
  226. this.showFuncsDesc = showFuncsDesc;
  227. }
  228. /**
  229. * @param showLocksDesc
  230. */
  231. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  232. ShowLocksDesc showLocksDesc) {
  233. this(inputs, outputs);
  234. this.showLocksDesc = showLocksDesc;
  235. }
  236. /**
  237. * @param descFuncDesc
  238. */
  239. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  240. DescFunctionDesc descFuncDesc) {
  241. this(inputs, outputs);
  242. descFunctionDesc = descFuncDesc;
  243. }
  244. /**
  245. * @param showPartsDesc
  246. */
  247. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  248. ShowPartitionsDesc showPartsDesc) {
  249. this(inputs, outputs);
  250. this.showPartsDesc = showPartsDesc;
  251. }
  252. /**
  253. * @param addPartitionDesc
  254. * information about the partitions we want to add.
  255. */
  256. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  257. AddPartitionDesc addPartitionDesc) {
  258. this(inputs, outputs);
  259. this.addPartitionDesc = addPartitionDesc;
  260. }
  261. /**
  262. * @param touchDesc
  263. * information about the table/partitions that we want to touch
  264. */
  265. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  266. AlterTableSimpleDesc simpleDesc) {
  267. this(inputs, outputs);
  268. this.alterTblSimpleDesc = simpleDesc;
  269. }
  270. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  271. MsckDesc checkDesc) {
  272. this(inputs, outputs);
  273. msckDesc = checkDesc;
  274. }
  275. /**
  276. * @param showTblStatusDesc
  277. * show table status descriptor
  278. */
  279. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  280. ShowTableStatusDesc showTblStatusDesc) {
  281. this(inputs, outputs);
  282. this.showTblStatusDesc = showTblStatusDesc;
  283. }
  284. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  285. DropIndexDesc dropIndexDesc) {
  286. this(inputs, outputs);
  287. this.dropIdxDesc = dropIndexDesc;
  288. }
  289. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  290. RoleDDLDesc roleDDLDesc) {
  291. this(inputs, outputs);
  292. this.roleDDLDesc = roleDDLDesc;
  293. }
  294. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  295. GrantDesc grantDesc) {
  296. this(inputs, outputs);
  297. this.grantDesc = grantDesc;
  298. }
  299. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  300. ShowGrantDesc showGrant) {
  301. this(inputs, outputs);
  302. this.showGrantDesc = showGrant;
  303. }
  304. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  305. RevokeDesc revokeDesc) {
  306. this(inputs, outputs);
  307. this.revokeDesc = revokeDesc;
  308. }
  309. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  310. GrantRevokeRoleDDL grantRevokeRoleDDL) {
  311. this(inputs, outputs);
  312. this.grantRevokeRoleDDL = grantRevokeRoleDDL;
  313. }
  314. public DDLWork(HashSet<ReadEntity> inputs, HashSet<WriteEntity> outputs,
  315. ShowIndexesDesc showIndexesDesc) {
  316. this(inputs, outputs);
  317. this.showIndexesDesc = showIndexesDesc;
  318. }
  319. /**
  320. * @return Create Database descriptor
  321. */
  322. public CreateDatabaseDesc getCreateDatabaseDesc() {
  323. return createDatabaseDesc;
  324. }
  325. /**
  326. * Set Create Database descriptor
  327. * @param createDatabaseDesc
  328. */
  329. public void setCreateDatabaseDesc(CreateDatabaseDesc createDatabaseDesc) {
  330. this.createDatabaseDesc = createDatabaseDesc;
  331. }
  332. /**
  333. * @return Drop Database descriptor
  334. */
  335. public DropDatabaseDesc getDropDatabaseDesc() {
  336. return dropDatabaseDesc;
  337. }
  338. /**
  339. * Set Drop Database descriptor
  340. * @param dropDatabaseDesc
  341. */
  342. public void setDropDatabaseDesc(DropDatabaseDesc dropDatabaseDesc) {
  343. this.dropDatabaseDesc = dropDatabaseDesc;
  344. }
  345. /**
  346. * @return Switch Database descriptor
  347. */
  348. public SwitchDatabaseDesc getSwitchDatabaseDesc() {
  349. return switchDatabaseDesc;
  350. }
  351. /**
  352. * Set Switch Database descriptor
  353. * @param switchDatabaseDesc
  354. */
  355. public void setSwitchDatabaseDesc(SwitchDatabaseDesc switchDatabaseDesc) {
  356. this.switchDatabaseDesc = switchDatabaseDesc;
  357. }
  358. /**
  359. * @return the createTblDesc
  360. */
  361. @Explain(displayName = "Create Table Operator")
  362. public CreateTableDesc getCreateTblDesc() {
  363. return createTblDesc;
  364. }
  365. /**
  366. * @param createTblDesc
  367. * the createTblDesc to set
  368. */
  369. public void setCreateTblDesc(CreateTableDesc createTblDesc) {
  370. this.createTblDesc = createTblDesc;
  371. }
  372. /**
  373. * @return the createIndexDesc
  374. */
  375. public CreateIndexDesc getCreateIndexDesc() {
  376. return createIndexDesc;
  377. }
  378. /**
  379. * @param createIndexDesc
  380. * the createIndexDesc to set
  381. */
  382. public void setCreateIndexDesc(CreateIndexDesc createIndexDesc) {
  383. this.createIndexDesc = createIndexDesc;
  384. }
  385. /**
  386. * @return the alterIndexDesc
  387. */
  388. public AlterIndexDesc getAlterIndexDesc() {
  389. return alterIndexDesc;
  390. }
  391. /**
  392. * @param alterTblDesc
  393. * the alterTblDesc to set
  394. */
  395. public void setAlterIndexDesc(AlterIndexDesc alterIndexDesc) {
  396. this.alterIndexDesc = alterIndexDesc;
  397. }
  398. /**
  399. * @return the createTblDesc
  400. */
  401. @Explain(displayName = "Create Table Operator")
  402. public CreateTableLikeDesc getCreateTblLikeDesc() {
  403. return createTblLikeDesc;
  404. }
  405. /**
  406. * @param createTblLikeDesc
  407. * the createTblDesc to set
  408. */
  409. public void setCreateTblLikeDesc(CreateTableLikeDesc createTblLikeDesc) {
  410. this.createTblLikeDesc = createTblLikeDesc;
  411. }
  412. /**
  413. * @return the createTblDesc
  414. */
  415. @Explain(displayName = "Create View Operator")
  416. public CreateViewDesc getCreateViewDesc() {
  417. return createVwDesc;
  418. }
  419. /**
  420. * @param createVwDesc
  421. * the createViewDesc to set
  422. */
  423. public void setCreateViewDesc(CreateViewDesc createVwDesc) {
  424. this.createVwDesc = createVwDesc;
  425. }
  426. /**
  427. * @return the dropTblDesc
  428. */
  429. @Explain(displayName = "Drop Table Operator")
  430. public DropTableDesc getDropTblDesc() {
  431. return dropTblDesc;
  432. }
  433. /**
  434. * @param dropTblDesc
  435. * the dropTblDesc to set
  436. */
  437. public void setDropTblDesc(DropTableDesc dropTblDesc) {
  438. this.dropTblDesc = dropTblDesc;
  439. }
  440. /**
  441. * @return the alterTblDesc
  442. */
  443. @Explain(displayName = "Alter Table Operator")
  444. public AlterTableDesc getAlterTblDesc() {
  445. return alterTblDesc;
  446. }
  447. /**
  448. * @param alterTblDesc
  449. * the alterTblDesc to set
  450. */
  451. public void setAlterTblDesc(AlterTableDesc alterTblDesc) {
  452. this.alterTblDesc = alterTblDesc;
  453. }
  454. /**
  455. * @return the showDatabasesDesc
  456. */
  457. @Explain(displayName = "Show Databases Operator")
  458. public ShowDatabasesDesc getShowDatabasesDesc() {
  459. return showDatabasesDesc;
  460. }
  461. /**
  462. * @param showDatabasesDesc
  463. * the showDatabasesDesc to set
  464. */
  465. public void setShowDatabasesDesc(ShowDatabasesDesc showDatabasesDesc) {
  466. this.showDatabasesDesc = showDatabasesDesc;
  467. }
  468. /**
  469. * @return the showTblsDesc
  470. */
  471. @Explain(displayName = "Show Table Operator")
  472. public ShowTablesDesc getShowTblsDesc() {
  473. return showTblsDesc;
  474. }
  475. /**
  476. * @param showTblsDesc
  477. * the showTblsDesc to set
  478. */
  479. public void setShowTblsDesc(ShowTablesDesc showTblsDesc) {
  480. this.showTblsDesc = showTblsDesc;
  481. }
  482. /**
  483. * @return the showFuncsDesc
  484. */
  485. @Explain(displayName = "Show Function Operator")
  486. public ShowFunctionsDesc getShowFuncsDesc() {
  487. return showFuncsDesc;
  488. }
  489. /**
  490. * @return the showLocksDesc
  491. */
  492. @Explain(displayName = "Show Lock Operator")
  493. public ShowLocksDesc getShowLocksDesc() {
  494. return showLocksDesc;
  495. }
  496. /**
  497. * @return the lockTblDesc
  498. */
  499. @Explain(displayName = "Lock Table Operator")
  500. public LockTableDesc getLockTblDesc() {
  501. return lockTblDesc;
  502. }
  503. /**
  504. * @return the unlockTblDesc
  505. */
  506. @Explain(displayName = "Unlock Table Operator")
  507. public UnlockTableDesc getUnlockTblDesc() {
  508. return unlockTblDesc;
  509. }
  510. /**
  511. * @return the descFuncDesc
  512. */
  513. @Explain(displayName = "Show Function Operator")
  514. public DescFunctionDesc getDescFunctionDesc() {
  515. return descFunctionDesc;
  516. }
  517. /**
  518. * @param showFuncsDesc
  519. * the showFuncsDesc to set
  520. */
  521. public void setShowFuncsDesc(ShowFunctionsDesc showFuncsDesc) {
  522. this.showFuncsDesc = showFuncsDesc;
  523. }
  524. /**
  525. * @param showLocksDesc
  526. * the showLocksDesc to set
  527. */
  528. public void setShowLocksDesc(ShowLocksDesc showLocksDesc) {
  529. this.showLocksDesc = showLocksDesc;
  530. }
  531. /**
  532. * @param lockTblDesc
  533. * the lockTblDesc to set
  534. */
  535. public void setLockTblDesc(LockTableDesc lockTblDesc) {
  536. this.lockTblDesc = lockTblDesc;
  537. }
  538. /**
  539. * @param unlockTblDesc
  540. * the unlockTblDesc to set
  541. */
  542. public void setUnlockTblDesc(UnlockTableDesc unlockTblDesc) {
  543. this.unlockTblDesc = unlockTblDesc;
  544. }
  545. /**
  546. * @param descFuncDesc
  547. * the showFuncsDesc to set
  548. */
  549. public void setDescFuncDesc(DescFunctionDesc descFuncDesc) {
  550. descFunctionDesc = descFuncDesc;
  551. }
  552. /**
  553. * @return the showPartsDesc
  554. */
  555. @Explain(displayName = "Show Partitions Operator")
  556. public ShowPartitionsDesc getShowPartsDesc() {
  557. return showPartsDesc;
  558. }
  559. /**
  560. * @param showPartsDesc
  561. * the showPartsDesc to set
  562. */
  563. public void setShowPartsDesc(ShowPartitionsDesc showPartsDesc) {
  564. this.showPartsDesc = showPartsDesc;
  565. }
  566. /**
  567. * @return the showIndexesDesc
  568. */
  569. @Explain(displayName = "Show Index Operator")
  570. public ShowIndexesDesc getShowIndexesDesc() {
  571. return showIndexesDesc;
  572. }
  573. public void setShowIndexesDesc(ShowIndexesDesc showIndexesDesc) {
  574. this.showIndexesDesc = showIndexesDesc;
  575. }
  576. /**
  577. * @return the descTblDesc
  578. */
  579. @Explain(displayName = "Describe Table Operator")
  580. public DescTableDesc getDescTblDesc() {
  581. return descTblDesc;
  582. }
  583. /**
  584. * @param descTblDesc
  585. * the descTblDesc to set
  586. */
  587. public void setDescTblDesc(DescTableDesc descTblDesc) {
  588. this.descTblDesc = descTblDesc;
  589. }
  590. /**
  591. * @return information about the partitions we want to add.
  592. */
  593. public AddPartitionDesc getAddPartitionDesc() {
  594. return addPartitionDesc;
  595. }
  596. /**
  597. * @param addPartitionDesc
  598. * information about the partitions we want to add.
  599. */
  600. public void setAddPartitionDesc(AddPartitionDesc addPartitionDesc) {
  601. this.addPartitionDesc = addPartitionDesc;
  602. }
  603. /**
  604. * @return information about the table/partitions we want to alter.
  605. */
  606. public AlterTableSimpleDesc getAlterTblSimpleDesc() {
  607. return alterTblSimpleDesc;
  608. }
  609. /**
  610. * @param desc
  611. * information about the table/partitions we want to alter.
  612. */
  613. public void setAlterTblSimpleDesc(AlterTableSimpleDesc desc) {
  614. this.alterTblSimpleDesc = desc;
  615. }
  616. /**
  617. * @return Metastore check description
  618. */
  619. public MsckDesc getMsckDesc() {
  620. return msckDesc;
  621. }
  622. /**
  623. * @param msckDesc
  624. * metastore check description
  625. */
  626. public void setMsckDesc(MsckDesc msckDesc) {
  627. this.msckDesc = msckDesc;
  628. }
  629. /**
  630. * @return show table descriptor
  631. */
  632. public ShowTableStatusDesc getShowTblStatusDesc() {
  633. return showTblStatusDesc;
  634. }
  635. /**
  636. * @param showTblStatusDesc
  637. * show table descriptor
  638. */
  639. public void setShowTblStatusDesc(ShowTableStatusDesc showTblStatusDesc) {
  640. this.showTblStatusDesc = showTblStatusDesc;
  641. }
  642. public CreateViewDesc getCreateVwDesc() {
  643. return createVwDesc;
  644. }
  645. public void setCreateVwDesc(CreateViewDesc createVwDesc) {
  646. this.createVwDesc = createVwDesc;
  647. }
  648. public void setDescFunctionDesc(DescFunctionDesc descFunctionDesc) {
  649. this.descFunctionDesc = descFunctionDesc;
  650. }
  651. public HashSet<ReadEntity> getInputs() {
  652. return inputs;
  653. }
  654. public HashSet<WriteEntity> getOutputs() {
  655. return outputs;
  656. }
  657. public void setInputs(HashSet<ReadEntity> inputs) {
  658. this.inputs = inputs;
  659. }
  660. public void setOutputs(HashSet<WriteEntity> outputs) {
  661. this.outputs = outputs;
  662. }
  663. public DropIndexDesc getDropIdxDesc() {
  664. return dropIdxDesc;
  665. }
  666. public void setDropIdxDesc(DropIndexDesc dropIdxDesc) {
  667. this.dropIdxDesc = dropIdxDesc;
  668. }
  669. /**
  670. * @return role ddl desc
  671. */
  672. public RoleDDLDesc getRoleDDLDesc() {
  673. return roleDDLDesc;
  674. }
  675. /**
  676. * @param roleDDLDesc role ddl desc
  677. */
  678. public void setRoleDDLDesc(RoleDDLDesc roleDDLDesc) {
  679. this.roleDDLDesc = roleDDLDesc;
  680. }
  681. /**
  682. * @return grant desc
  683. */
  684. public GrantDesc getGrantDesc() {
  685. return grantDesc;
  686. }
  687. /**
  688. * @param grantDesc grant desc
  689. */
  690. public void setGrantDesc(GrantDesc grantDesc) {
  691. this.grantDesc = grantDesc;
  692. }
  693. /**
  694. * @return show grant desc
  695. */
  696. public ShowGrantDesc getShowGrantDesc() {
  697. return showGrantDesc;
  698. }
  699. /**
  700. * @param showGrantDesc
  701. */
  702. public void setShowGrantDesc(ShowGrantDesc showGrantDesc) {
  703. this.showGrantDesc = showGrantDesc;
  704. }
  705. public RevokeDesc getRevokeDesc() {
  706. return revokeDesc;
  707. }
  708. public void setRevokeDesc(RevokeDesc revokeDesc) {
  709. this.revokeDesc = revokeDesc;
  710. }
  711. /**
  712. * @return
  713. */
  714. public GrantRevokeRoleDDL getGrantRevokeRoleDDL() {
  715. return grantRevokeRoleDDL;
  716. }
  717. /**
  718. * @param grantRevokeRoleDDL
  719. */
  720. public void setGrantRevokeRoleDDL(GrantRevokeRoleDDL grantRevokeRoleDDL) {
  721. this.grantRevokeRoleDDL = grantRevokeRoleDDL;
  722. }
  723. public void setAlterDatabaseDesc(AlterDatabaseDesc alterDbDesc) {
  724. this.alterDbDesc = alterDbDesc;
  725. }
  726. public AlterDatabaseDesc getAlterDatabaseDesc() {
  727. return this.alterDbDesc;
  728. }
  729. }