PHOENIX-4605 Support running multiple transaction providers
[phoenix.git] / phoenix-core / src / main / java / org / apache / phoenix / transaction / OmidTransactionContext.java
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.phoenix.transaction;
19
20 import java.sql.SQLException;
21
22 import org.apache.hadoop.hbase.client.HTableInterface;
23 import org.apache.phoenix.schema.PTable;
24 import org.apache.phoenix.transaction.TransactionFactory.Provider;
25
26 public class OmidTransactionContext implements PhoenixTransactionContext {
27
28 @Override
29 public void begin() throws SQLException {
30 // TODO Auto-generated method stub
31
32 }
33
34 @Override
35 public void commit() throws SQLException {
36 // TODO Auto-generated method stub
37
38 }
39
40 @Override
41 public void abort() throws SQLException {
42 // TODO Auto-generated method stub
43
44 }
45
46 @Override
47 public void checkpoint(boolean hasUncommittedData) throws SQLException {
48 // TODO Auto-generated method stub
49
50 }
51
52 @Override
53 public void commitDDLFence(PTable dataTable) throws SQLException {
54 // TODO Auto-generated method stub
55
56 }
57
58 @Override
59 public void join(PhoenixTransactionContext ctx) {
60 // TODO Auto-generated method stub
61
62 }
63
64 @Override
65 public boolean isTransactionRunning() {
66 // TODO Auto-generated method stub
67 return false;
68 }
69
70 @Override
71 public void reset() {
72 // TODO Auto-generated method stub
73
74 }
75
76 @Override
77 public long getTransactionId() {
78 // TODO Auto-generated method stub
79 return 0;
80 }
81
82 @Override
83 public long getReadPointer() {
84 // TODO Auto-generated method stub
85 return 0;
86 }
87
88 @Override
89 public long getWritePointer() {
90 // TODO Auto-generated method stub
91 return 0;
92 }
93
94 @Override
95 public PhoenixVisibilityLevel getVisibilityLevel() {
96 // TODO Auto-generated method stub
97 return null;
98 }
99
100 @Override
101 public void setVisibilityLevel(PhoenixVisibilityLevel visibilityLevel) {
102 // TODO Auto-generated method stub
103
104 }
105
106 @Override
107 public byte[] encodeTransaction() throws SQLException {
108 // TODO Auto-generated method stub
109 return null;
110 }
111
112 @Override
113 public Provider getProvider() {
114 return Provider.OMID;
115 }
116
117 @Override
118 public PhoenixTransactionContext newTransactionContext(PhoenixTransactionContext contex, boolean subTask) {
119 return null;
120 }
121
122 @Override
123 public void markDMLFence(PTable dataTable) {
124 // TODO Auto-generated method stub
125
126 }
127
128 @Override
129 public HTableInterface getTransactionalTable(HTableInterface htable, boolean isImmutable) {
130 // TODO Auto-generated method stub
131 return null;
132 }
133 }