Methods
Modifier and Type |
Method and Description |
static AlterTableDesc |
addNewColumn(String tableName,
Column column,
AlterTableType alterTableType) |
static String |
buildFQName(String... identifiers) |
static CatalogProtos.TableIdentifierProto |
buildTableIdentifier(String databaseName,
String tableName) |
static boolean |
checkIfCompatibleIncludingArray(TajoDataTypes.Type defined,
TajoDataTypes.Type given)
Check if both are compatible to each other.
|
static boolean |
checkIfMatchedNonVarLengthFunction(List<TajoDataTypes.DataType> definedTypes,
List<TajoDataTypes.DataType> givenTypes,
int n,
boolean lastArrayCompatible)
It is used when the function definition and function invocation whose the number of parameters are the same.
|
static boolean |
checkIfVariableLengthParamDefinition(List<TajoDataTypes.DataType> definedTypes)
Check if the parameter definition can be variable length.
|
static void |
closeQuietly(Connection conn) |
static void |
closeQuietly(ResultSet res) |
static void |
closeQuietly(Statement stmt) |
static void |
closeQuietly(Statement stmt,
ResultSet res) |
static String |
columnToDDLString(Column column) |
static String |
denormalizeIdentifier(String identifier)
Denormalize an identifier.
|
static String |
denormalizePart(String identifier) |
static String |
extractQualifier(String name)
Extract a qualification name from an identifier.
|
static String |
extractSimpleName(String name)
Extract a simple name from an identifier.
|
static String |
getCanonicalSignature(String functionName,
Collection<TajoDataTypes.DataType> paramTypes) |
static String |
getCanonicalSignature(String signature,
TajoDataTypes.DataType... paramTypes) |
static String |
getCanonicalTableName(String databaseName,
String tableName) |
static TajoDataTypes.Type |
getPrimitiveTypeOf(TajoDataTypes.Type arrayType) |
static CatalogProtos.SchemaProto |
getQualfiedSchema(String tableName,
CatalogProtos.SchemaProto schema)
This method transforms the unqualified names of a given schema into
the qualified names.
|
static CatalogProtos.StoreType |
getStoreType(String typeStr) |
static boolean |
isArrayType(TajoDataTypes.Type type) |
static boolean |
isCompatibleType(TajoDataTypes.Type definedType,
TajoDataTypes.Type givenType) |
static boolean |
isDelimited(String identifier) |
static boolean |
isFQColumnName(String tableName) |
static boolean |
isFQTableName(String tableName) |
static boolean |
isMatchedFunction(List<TajoDataTypes.DataType> definedTypes,
List<TajoDataTypes.DataType> givenTypes)
Checking if the given parameter types are compatible to the defined types of the function.
|
static boolean |
isShouldBeQuoted(String columnName) |
static TajoDataTypes.DataType |
newDataType(TajoDataTypes.Type type,
String code) |
static TajoDataTypes.DataType |
newDataType(TajoDataTypes.Type type,
String code,
int len) |
static TajoDataTypes.DataType |
newDataTypeWithLen(TajoDataTypes.Type type,
int length) |
static PartitionMethodDesc |
newPartitionMethodDesc(CatalogProtos.PartitionMethodProto proto) |
static TajoDataTypes.DataType |
newSimpleDataType(TajoDataTypes.Type type) |
static TajoDataTypes.DataType[] |
newSimpleDataTypeArray(TajoDataTypes.Type... types) |
static TableDesc |
newTableDesc(CatalogProtos.TableDescProto proto) |
static TableDesc |
newTableDesc(String tableName,
Schema schema,
TableMeta meta,
org.apache.hadoop.fs.Path path) |
static TableMeta |
newTableMeta(CatalogProtos.StoreType type) |
static TableMeta |
newTableMeta(CatalogProtos.StoreType type,
Options options) |
static String |
normalizeIdentifier(String identifier)
Normalize an identifier.
|
static String |
normalizeIdentifierPart(String part) |
static AlterTableDesc |
renameColumn(String tableName,
String oldColumName,
String newColumName,
AlterTableType alterTableType) |
static AlterTableDesc |
renameTable(String tableName,
String newTableName,
AlterTableType alterTableType) |
static String[] |
splitFQTableName(String qualifiedName) |
static String[] |
splitTableName(String tableName) |
static String |
stripQuote(String str) |