OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeoRelDataType.java
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, 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 
17 package com.mapd.metadata;
18 
19 import org.apache.calcite.rel.type.RelDataType;
20 import org.apache.calcite.rel.type.RelDataTypeComparability;
21 import org.apache.calcite.rel.type.RelDataTypeFamily;
22 import org.apache.calcite.rel.type.RelDataTypeField;
23 import org.apache.calcite.rel.type.RelDataTypePrecedenceList;
24 import org.apache.calcite.rel.type.StructKind;
25 import org.apache.calcite.sql.SqlCollation;
26 import org.apache.calcite.sql.SqlIdentifier;
27 import org.apache.calcite.sql.SqlIntervalQualifier;
28 import org.apache.calcite.sql.type.SqlTypeName;
29 
30 import java.nio.charset.Charset;
31 import java.util.ArrayList;
32 import java.util.List;
33 
34 public class GeoRelDataType implements RelDataType {
35  @Override
36  public boolean isStruct() {
37  return false;
38  }
39 
40  @Override
41  public List<RelDataTypeField> getFieldList() {
42  return new ArrayList<RelDataTypeField>();
43  }
44 
45  @Override
46  public List<String> getFieldNames() {
47  return new ArrayList<String>();
48  }
49 
50  @Override
51  public int getFieldCount() {
52  return 0;
53  }
54 
55  @Override
56  public StructKind getStructKind() {
57  return StructKind.NONE;
58  }
59 
60  @Override
61  public RelDataTypeField getField(
62  String fieldName, boolean caseSensitive, boolean elideRecord) {
63  return null;
64  }
65 
66  @Override
67  public boolean isNullable() {
68  return false;
69  }
70 
71  @Override
72  public RelDataType getComponentType() {
73  return null;
74  }
75 
76  @Override
77  public RelDataType getKeyType() {
78  return null;
79  }
80 
81  @Override
82  public RelDataType getValueType() {
83  return null;
84  }
85 
86  @Override
87  public Charset getCharset() {
88  return null;
89  }
90 
91  @Override
92  public SqlCollation getCollation() {
93  return null;
94  }
95 
96  @Override
97  public SqlIntervalQualifier getIntervalQualifier() {
98  return null;
99  }
100 
101  @Override
102  public int getPrecision() {
103  return -1;
104  }
105 
106  @Override
107  public int getScale() {
108  return -1;
109  }
110 
111  @Override
112  public SqlTypeName getSqlTypeName() {
113  return null;
114  }
115 
116  @Override
117  public SqlIdentifier getSqlIdentifier() {
118  return null;
119  }
120 
121  @Override
122  public String getFullTypeString() {
123  return "Geometry";
124  }
125 
126  @Override
127  public RelDataTypeFamily getFamily() {
128  return null;
129  }
130 
131  @Override
132  public RelDataTypePrecedenceList getPrecedenceList() {
133  return null;
134  }
135 
136  @Override
137  public RelDataTypeComparability getComparability() {
138  return RelDataTypeComparability.NONE;
139  }
140 
141  @Override
142  public boolean isDynamicStruct() {
143  return false;
144  }
145 }
RelDataTypePrecedenceList getPrecedenceList()
List< RelDataTypeField > getFieldList()
SqlIntervalQualifier getIntervalQualifier()
RelDataTypeField getField(String fieldName, boolean caseSensitive, boolean elideRecord)
RelDataTypeComparability getComparability()