/*
 * 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.util;

import org.apache.phoenix.schema.PDataType;

/**
 * ColumnInfo used to store Column Name and its associated PDataType
 */
public class ColumnInfo {
	private String columnName;
	private Integer sqlType;

	public ColumnInfo(String columnName, Integer sqlType) {
		this.columnName = columnName;
		this.sqlType = sqlType;
	}

	public String getColumnName() {
		return columnName;
	}

	public Integer getSqlType() {
		return sqlType;
	}
	
	public String toString() {
		return columnName+" "+PDataType.fromTypeId(sqlType).getSqlTypeName();
	}
}	

@@ -57,19 +57,16 @@
 nder one
-%0A *
  or more
@@ -97,17 +97,16 @@
 eements.
- 
  See the
@@ -112,24 +112,24 @@
 e NOTICE
+%0A *
  file
-%0A *
  distrib
@@ -174,19 +174,16 @@
 ormation
-%0A *
  regardi
@@ -205,17 +205,16 @@
 nership.
- 
  The ASF
@@ -285,19 +285,16 @@
 2.0 (the
-%0A *
  %22Licens
@@ -344,19 +344,16 @@
 mpliance
-%0A *
  with th
@@ -349,24 +349,27 @@
 nce with the
+%0A *
  License.  Y
@@ -365,17 +365,16 @@
 License.
- 
  You may
@@ -405,22 +405,16 @@
 cense at
-%0A *%0A *
  http://
@@ -452,14 +452,8 @@
 -2.0
-%0A *%0A *
  Unl
@@ -467,16 +467,19 @@
 uired by
+%0A *
  applica
@@ -519,19 +519,16 @@
 software
-%0A *
  distrib
@@ -661,19 +661,16 @@
 implied.
-%0A *
  See the
@@ -703,16 +703,19 @@
 language
+%0A *
  governi
@@ -732,19 +732,16 @@
 ions and
-%0A *
  limitat
@@ -951,17 +951,20 @@
 nInfo %7B%0A
-%09
+    
 private 
@@ -982,17 +982,20 @@
 mnName;%0A
-%09
+    
 private 
@@ -1012,17 +1012,20 @@
 lType;%0A%0A
-%09
+    
 public C
@@ -1072,18 +1072,24 @@
 Type) %7B%0A
-%09%09
+        
 this.col
@@ -1110,18 +1110,24 @@
 mnName;%0A
-%09%09
+        
 this.sql
@@ -1142,21 +1142,27 @@
 qlType;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 public S
@@ -1181,26 +1181,32 @@
 umnName() %7B%0A
-%09%09
+        
 return colum
@@ -1216,13 +1216,19 @@
 me;%0A
-%09%7D%0A%0A%09
+    %7D%0A%0A    
 publ
@@ -1249,26 +1249,32 @@
 SqlType() %7B%0A
-%09%09
+        
 return sqlTy
@@ -1281,14 +1281,33 @@
 pe;%0A
-%09%7D%0A%09%0A%09
+    %7D%0A%0A    @Override%0A    
 publ
@@ -1333,10 +1333,16 @@
 ) %7B%0A
-%09%09
+        
 retu
@@ -1358,13 +1358,17 @@
 Name
-+%22 %22+
+ + %22 %22 + 
 PDat
@@ -1415,10 +1415,12 @@
 ();%0A
-%09
+    
 %7D%0A%7D
-%09
 %0A

Add missing @Override tag