Package | Description |
---|---|
org.apache.metamodel |
Root package for MetaModel
|
org.apache.metamodel.create |
API for creating tables
|
org.apache.metamodel.elasticsearch.common | |
org.apache.metamodel.hbase |
Module package for Apache HBase
|
org.apache.metamodel.jdbc |
Module package for JDBC compliant databases
|
org.apache.metamodel.jdbc.dialects | |
org.apache.metamodel.mongodb.common | |
org.apache.metamodel.query |
API for querying
|
org.apache.metamodel.schema |
API for schema structure
|
org.apache.metamodel.schema.builder |
API for schema building.
|
org.apache.metamodel.util |
Utilities and convenient classes
|
Modifier and Type | Method and Description |
---|---|
static Column[] |
MetaModelHelper.getColumnsByType(Column[] columns,
ColumnType columnType) |
Modifier and Type | Method and Description |
---|---|
T |
ColumnBuilder.ofType(ColumnType type)
Defines the
ColumnType of the created column. |
Modifier and Type | Method and Description |
---|---|
static ColumnType |
ElasticSearchUtils.getColumnTypeFromElasticSearchType(String metaDataFieldType) |
ColumnType[] |
ElasticSearchMetaData.getColumnTypes() |
Constructor and Description |
---|
ElasticSearchMetaData(String[] names,
ColumnType[] types)
Constructs a
ElasticSearchMetaData . |
Modifier and Type | Method and Description |
---|---|
ColumnType |
HBaseConfiguration.getDefaultRowKeyType() |
Constructor and Description |
---|
HBaseConfiguration(String zookeeperHostname,
int zookeeperPort,
ColumnType defaultRowKeyType) |
HBaseConfiguration(String schemaName,
String zookeeperHostname,
int zookeeperPort,
SimpleTableDef[] tableDefinitions,
ColumnType defaultRowKeyType)
Creates a
HBaseConfiguration using detailed configuration
properties. |
HBaseConfiguration(String schemaName,
String zookeeperHostname,
int zookeeperPort,
SimpleTableDef[] tableDefinitions,
ColumnType defaultRowKeyType,
int hbaseClientRetries,
int zookeeperSessionTimeout,
int zookeeperRecoveryRetries)
Creates a
HBaseConfiguration using detailed configuration
properties. |
Modifier and Type | Field and Description |
---|---|
static ColumnType |
JdbcDataContext.COLUMN_TYPE_BLOB_AS_BYTES |
static ColumnType |
JdbcDataContext.COLUMN_TYPE_CLOB_AS_STRING |
Modifier and Type | Method and Description |
---|---|
ColumnType |
PostgresqlQueryRewriter.getColumnType(int jdbcType,
String nativeType,
Integer columnSize) |
ColumnType |
IQueryRewriter.getColumnType(int jdbcType,
String nativeType,
Integer columnSize)
Gets the column type for a specific JDBC type (as defined in
Types ), native type name and column size. |
ColumnType |
AbstractQueryRewriter.getColumnType(int jdbcType,
String nativeType,
Integer columnSize) |
Modifier and Type | Method and Description |
---|---|
String |
SQLServerQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
PostgresqlQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
OracleQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
MysqlQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
IQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize)
Rewrites the name of a column type, as it is written in CREATE TABLE
statements.
|
String |
HsqldbQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
HiveQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
DefaultQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
DB2QueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
String |
AbstractQueryRewriter.rewriteColumnType(ColumnType columnType,
Integer columnSize) |
Constructor and Description |
---|
MongoDbTableDef(String name,
String[] columnNames,
ColumnType[] columnTypes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ColumnType |
SelectItem.getExpectedColumnType()
Tries to infer the
ColumnType of this SelectItem . |
ColumnType |
ToStringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToNumberFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToDateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToBooleanFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SumAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
MapValueFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
FunctionType.getExpectedColumnType(ColumnType type) |
ColumnType |
DefaultAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
CountAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
AggregateFunction.getExpectedColumnType(ColumnType type)
Returns the function ColumnType.
|
Modifier and Type | Method and Description |
---|---|
ColumnType |
ToStringFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToNumberFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToDateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
ToBooleanFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
SumAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
MapValueFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
FunctionType.getExpectedColumnType(ColumnType type) |
ColumnType |
DefaultAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
CountAggregateFunction.getExpectedColumnType(ColumnType type) |
ColumnType |
AggregateFunction.getExpectedColumnType(ColumnType type)
Returns the function ColumnType.
|
Modifier and Type | Class and Description |
---|---|
class |
ColumnTypeImpl
Default implementation of ColumnType
|
Modifier and Type | Field and Description |
---|---|
static ColumnType |
ColumnType.ARRAY |
static ColumnType |
ColumnType.BIGINT |
static ColumnType |
ColumnType.BINARY |
static ColumnType |
ColumnType.BIT |
static ColumnType |
ColumnType.BLOB |
static ColumnType |
ColumnType.BOOLEAN |
static ColumnType |
ColumnType.CHAR |
static ColumnType |
ColumnType.CLOB |
static ColumnType |
ColumnType.DATALINK |
static ColumnType |
ColumnType.DATE |
static ColumnType |
ColumnType.DECIMAL |
static ColumnType |
ColumnType.DISTINCT |
static ColumnType |
ColumnType.DOUBLE |
static ColumnType |
ColumnType.FLOAT |
static ColumnType |
ColumnType.INET |
static ColumnType |
ColumnType.INTEGER |
static ColumnType |
ColumnType.JAVA_OBJECT |
static ColumnType |
ColumnType.LIST |
static ColumnType |
ColumnType.LONGNVARCHAR |
static ColumnType |
ColumnType.LONGVARBINARY |
static ColumnType |
ColumnType.LONGVARCHAR |
static ColumnType |
ColumnType.MAP |
static ColumnType |
ColumnType.NCHAR |
static ColumnType |
ColumnType.NCLOB |
static ColumnType |
ColumnType.NULL |
static ColumnType |
ColumnType.NUMBER |
static ColumnType |
ColumnType.NUMERIC |
static ColumnType |
ColumnType.NVARCHAR |
static ColumnType |
ColumnType.OTHER |
static ColumnType |
ColumnType.REAL |
static ColumnType |
ColumnType.REF |
static ColumnType |
ColumnType.ROWID |
static ColumnType |
ColumnType.SET |
static ColumnType |
ColumnType.SMALLINT |
static ColumnType |
ColumnType.SQLXML |
static ColumnType |
ColumnType.STRING |
static ColumnType |
ColumnType.STRUCT |
static ColumnType |
ColumnType.TIME |
static ColumnType |
ColumnType.TIMESTAMP |
static ColumnType |
ColumnType.TINYINT |
static ColumnType |
ColumnType.UUID |
static ColumnType |
ColumnType.VARBINARY |
static ColumnType |
ColumnType.VARCHAR |
Modifier and Type | Method and Description |
---|---|
static ColumnType |
ColumnTypeImpl.convertColumnType(Class<?> cls)
Finds the ColumnType enum corresponding to the incoming Java class.
|
static ColumnType |
ColumnTypeImpl.convertColumnType(int jdbcType)
Finds the ColumnType enum corresponding to the incoming JDBC
type-constant
|
ColumnType |
MutableColumn.getType() |
ColumnType |
ImmutableColumn.getType() |
ColumnType |
Column.getType()
Gets the type of the column
|
static ColumnType |
ColumnTypeImpl.valueOf(String fieldName) |
Modifier and Type | Method and Description |
---|---|
Column[] |
Table.getColumnsOfType(ColumnType columnType)
Gets the columns of this table that conforms to a specified
ColumnType . |
Column[] |
AbstractTable.getColumnsOfType(ColumnType columnType) |
MutableColumn |
MutableColumn.setType(ColumnType type) |
Constructor and Description |
---|
ImmutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote,
boolean primaryKey)
Constructs a new
ImmutableColumn . |
MutableColumn(String name,
ColumnType type) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Boolean nullable) |
MutableColumn(String name,
ColumnType type,
Table table,
int columnNumber,
Integer columnSize,
String nativeType,
Boolean nullable,
String remarks,
boolean indexed,
String quote) |
Modifier and Type | Method and Description |
---|---|
void |
InferentialColumnBuilder.addObservation(ColumnType columnType) |
Modifier and Type | Class and Description |
---|---|
protected static class |
LegacyDeserializationObjectInputStream.LegacyColumnType
Implementation of the new
ColumnType interface which still
adheres to the constant/enum values of the old ColumnType definition. |
Modifier and Type | Method and Description |
---|---|
ColumnType[] |
SimpleTableDef.getColumnTypes()
Gets the types of the columns in the table
|
ColumnType |
LegacyDeserializationObjectInputStream.LegacyFunctionType.getExpectedColumnType(ColumnType type) |
Modifier and Type | Method and Description |
---|---|
static String |
FormatHelper.formatSqlBoolean(ColumnType columnType,
boolean b) |
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP)
|
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP).
|
static String |
FormatHelper.formatSqlTime(ColumnType columnType,
Date date,
boolean typeCastDeclaration,
String beforeDateLiteral,
String afterDateLiteral)
Formats a date according to a specific column type (DATE, TIME or
TIMESTAMP)
|
static String |
FormatHelper.formatSqlValue(ColumnType columnType,
Object value) |
ColumnType |
LegacyDeserializationObjectInputStream.LegacyFunctionType.getExpectedColumnType(ColumnType type) |
static Date |
FormatHelper.parseSqlTime(ColumnType columnType,
String value)
Parses a SQL string representation of a time based value
|
Constructor and Description |
---|
SimpleTableDef(String name,
String[] columnNames,
ColumnType[] columnTypes)
Constructs a
SimpleTableDef . |
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.