OmniSciDB  04ee39c94c
GeoRelDataType.java
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.mapd.metadata;
17 
18 import org.apache.calcite.rel.type.RelDataType;
19 import org.apache.calcite.rel.type.RelDataTypeComparability;
20 import org.apache.calcite.rel.type.RelDataTypeFamily;
21 import org.apache.calcite.rel.type.RelDataTypeField;
22 import org.apache.calcite.rel.type.RelDataTypePrecedenceList;
23 import org.apache.calcite.rel.type.StructKind;
24 import org.apache.calcite.sql.SqlCollation;
25 import org.apache.calcite.sql.SqlIdentifier;
26 import org.apache.calcite.sql.SqlIntervalQualifier;
27 import org.apache.calcite.sql.type.SqlTypeName;
28 
29 import java.nio.charset.Charset;
30 import java.util.ArrayList;
31 import java.util.List;
32 
33 public class GeoRelDataType implements RelDataType {
34  @Override
35  public boolean isStruct() {
36  return false;
37  }
38 
39  @Override
40  public List<RelDataTypeField> getFieldList() {
41  return new ArrayList<RelDataTypeField>();
42  }
43 
44  @Override
45  public List<String> getFieldNames() {
46  return new ArrayList<String>();
47  }
48 
49  @Override
50  public int getFieldCount() {
51  return 0;
52  }
53 
54  @Override
55  public StructKind getStructKind() {
56  return StructKind.NONE;
57  }
58 
59  @Override
60  public RelDataTypeField getField(
61  String fieldName, boolean caseSensitive, boolean elideRecord) {
62  return null;
63  }
64 
65  @Override
66  public boolean isNullable() {
67  return false;
68  }
69 
70  @Override
71  public RelDataType getComponentType() {
72  return null;
73  }
74 
75  @Override
76  public RelDataType getKeyType() {
77  return null;
78  }
79 
80  @Override
81  public RelDataType getValueType() {
82  return null;
83  }
84 
85  @Override
86  public Charset getCharset() {
87  return null;
88  }
89 
90  @Override
91  public SqlCollation getCollation() {
92  return null;
93  }
94 
95  @Override
96  public SqlIntervalQualifier getIntervalQualifier() {
97  return null;
98  }
99 
100  @Override
101  public int getPrecision() {
102  return -1;
103  }
104 
105  @Override
106  public int getScale() {
107  return -1;
108  }
109 
110  @Override
111  public SqlTypeName getSqlTypeName() {
112  return null;
113  }
114 
115  @Override
116  public SqlIdentifier getSqlIdentifier() {
117  return null;
118  }
119 
120  @Override
122  return "Geometry";
123  }
124 
125  @Override
126  public RelDataTypeFamily getFamily() {
127  return null;
128  }
129 
130  @Override
131  public RelDataTypePrecedenceList getPrecedenceList() {
132  return null;
133  }
134 
135  @Override
136  public RelDataTypeComparability getComparability() {
137  return RelDataTypeComparability.NONE;
138  }
139 
140  @Override
141  public boolean isDynamicStruct() {
142  return false;
143  }
144 }
RelDataTypePrecedenceList getPrecedenceList()
List< RelDataTypeField > getFieldList()
SqlIntervalQualifier getIntervalQualifier()
RelDataTypeField getField(String fieldName, boolean caseSensitive, boolean elideRecord)
RelDataTypeComparability getComparability()