Repository: phoenix
Updated Branches:
  refs/heads/3.0 28d7f638f -> ad4a40806


PHOENIX-1309 - Adding missing file DelegateTable.java


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/ad4a4080
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/ad4a4080
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/ad4a4080

Branch: refs/heads/3.0
Commit: ad4a408064097e53ab492b24a213c8652aa9bd3c
Parents: 28d7f63
Author: Ramkrishna <ramkrishna.s.vasude...@intel.com>
Authored: Mon Oct 13 15:04:13 2014 +0530
Committer: Ramkrishna <ramkrishna.s.vasude...@intel.com>
Committed: Mon Oct 13 15:04:13 2014 +0530

----------------------------------------------------------------------
 .../apache/phoenix/schema/DelegateTable.java    | 236 +++++++++++++++++++
 1 file changed, 236 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/ad4a4080/phoenix-core/src/main/java/org/apache/phoenix/schema/DelegateTable.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/schema/DelegateTable.java 
b/phoenix-core/src/main/java/org/apache/phoenix/schema/DelegateTable.java
new file mode 100644
index 0000000..695282a
--- /dev/null
+++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/DelegateTable.java
@@ -0,0 +1,236 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.phoenix.schema;
+
+import java.io.DataInput;
+import java.io.DataOutput;
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
+import org.apache.phoenix.hbase.index.util.KeyValueBuilder;
+import org.apache.phoenix.index.IndexMaintainer;
+import org.apache.phoenix.schema.stats.PTableStats;
+
+public class DelegateTable implements PTable {
+    @Override
+    public long getTimeStamp() {
+        return delegate.getTimeStamp();
+    }
+
+    @Override
+    public long getSequenceNumber() {
+        return delegate.getSequenceNumber();
+    }
+
+    @Override
+    public PName getName() {
+        return delegate.getName();
+    }
+
+    @Override
+    public PName getSchemaName() {
+        return delegate.getSchemaName();
+    }
+
+    @Override
+    public PName getTableName() {
+        return delegate.getTableName();
+    }
+
+    @Override
+    public PName getTenantId() {
+        return delegate.getTenantId();
+    }
+
+    @Override
+    public PTableType getType() {
+        return delegate.getType();
+    }
+
+    @Override
+    public PName getPKName() {
+        return delegate.getPKName();
+    }
+
+    @Override
+    public List<PColumn> getPKColumns() {
+        return delegate.getPKColumns();
+    }
+
+    @Override
+    public List<PColumn> getColumns() {
+        return delegate.getColumns();
+    }
+
+    @Override
+    public List<PColumnFamily> getColumnFamilies() {
+        return delegate.getColumnFamilies();
+    }
+
+    @Override
+    public PColumnFamily getColumnFamily(byte[] family) throws 
ColumnFamilyNotFoundException {
+        return delegate.getColumnFamily(family);
+    }
+
+    @Override
+    public PColumnFamily getColumnFamily(String family) throws 
ColumnFamilyNotFoundException {
+        return delegate.getColumnFamily(family);
+    }
+
+    @Override
+    public PColumn getColumn(String name) throws ColumnNotFoundException, 
AmbiguousColumnException {
+        return delegate.getColumn(name);
+    }
+
+    @Override
+    public PColumn getPKColumn(String name) throws ColumnNotFoundException {
+        return delegate.getPKColumn(name);
+    }
+
+    @Override
+    public PRow newRow(KeyValueBuilder builder, long ts, 
ImmutableBytesWritable key, byte[]... values) {
+        return delegate.newRow(builder, ts, key, values);
+    }
+
+    @Override
+    public PRow newRow(KeyValueBuilder builder, ImmutableBytesWritable key, 
byte[]... values) {
+        return delegate.newRow(builder, key, values);
+    }
+
+    @Override
+    public int newKey(ImmutableBytesWritable key, byte[][] values) {
+        return delegate.newKey(key, values);
+    }
+
+    @Override
+    public RowKeySchema getRowKeySchema() {
+        return delegate.getRowKeySchema();
+    }
+
+    @Override
+    public Integer getBucketNum() {
+        return delegate.getBucketNum();
+    }
+
+    @Override
+    public List<PTable> getIndexes() {
+        return delegate.getIndexes();
+    }
+
+    @Override
+    public PIndexState getIndexState() {
+        return delegate.getIndexState();
+    }
+
+    @Override
+    public PName getParentName() {
+        return delegate.getParentName();
+    }
+
+    @Override
+    public PName getParentTableName() {
+        return delegate.getParentTableName();
+    }
+
+    @Override
+    public List<PName> getPhysicalNames() {
+        return delegate.getPhysicalNames();
+    }
+
+    @Override
+    public PName getPhysicalName() {
+        return delegate.getPhysicalName();
+    }
+
+    @Override
+    public boolean isImmutableRows() {
+        return delegate.isImmutableRows();
+    }
+
+    @Override
+    public void getIndexMaintainers(ImmutableBytesWritable ptr) {
+        delegate.getIndexMaintainers(ptr);
+    }
+
+    @Override
+    public IndexMaintainer getIndexMaintainer(PTable dataTable) {
+        return delegate.getIndexMaintainer(dataTable);
+    }
+
+    @Override
+    public PName getDefaultFamilyName() {
+        return delegate.getDefaultFamilyName();
+    }
+
+    @Override
+    public boolean isWALDisabled() {
+        return delegate.isWALDisabled();
+    }
+
+    @Override
+    public boolean isMultiTenant() {
+        return delegate.isMultiTenant();
+    }
+
+    @Override
+    public ViewType getViewType() {
+        return delegate.getViewType();
+    }
+
+    @Override
+    public String getViewStatement() {
+        return delegate.getViewStatement();
+    }
+
+    @Override
+    public Short getViewIndexId() {
+        return delegate.getViewIndexId();
+    }
+
+    @Override
+    public PTableKey getKey() {
+        return delegate.getKey();
+    }
+
+    @Override
+    public int getEstimatedSize() {
+        return delegate.getEstimatedSize();
+    }
+
+    @Override
+    public PTableStats getTableStats() {
+        return delegate.getTableStats();
+    }
+
+    private final PTable delegate;
+    
+    public DelegateTable(PTable delegate) {
+        this.delegate = delegate;
+    }
+    
+    @Override
+    public void readFields(DataInput input) throws IOException {
+        delegate.readFields(input);
+    }
+    
+    @Override
+    public void write(DataOutput out) throws IOException {
+        delegate.write(out);
+    }
+}

Reply via email to