Package | Description |
---|---|
org.apache.metamodel |
Root package for MetaModel
|
org.apache.metamodel.cassandra | |
org.apache.metamodel.couchdb |
Module package for CouchDB support
|
org.apache.metamodel.data |
API for data sets
|
org.apache.metamodel.dynamodb | |
org.apache.metamodel.elasticsearch | |
org.apache.metamodel.elasticsearch.nativeclient | |
org.apache.metamodel.elasticsearch.rest | |
org.apache.metamodel.hbase |
Module package for Apache HBase
|
org.apache.metamodel.jdbc.dialects | |
org.apache.metamodel.kafka | |
org.apache.metamodel.mongodb.mongo2 |
Module package for MongoDB support
|
org.apache.metamodel.mongodb.mongo3 |
Module package for MongoDB support
|
org.apache.metamodel.query |
API for querying
|
org.apache.metamodel.query.builder |
API for query building
|
org.apache.metamodel.query.parser |
Modifier and Type | Method and Description |
---|---|
static SelectItem[] |
MetaModelHelper.createSelectItems(Column... columns) |
static SelectItem |
MetaModelHelper.getSelectItemByAlias(Query query,
String alias)
This method returns the select item of the given alias name.
|
Modifier and Type | Method and Description |
---|---|
static List<SelectItem> |
MetaModelHelper.getAggregateFunctionSelectItems(Iterable<SelectItem> selectItems) |
static List<SelectItem> |
MetaModelHelper.getEvaluatedSelectItems(List<FilterItem> items) |
static List<SelectItem> |
MetaModelHelper.getScalarFunctionSelectItems(Iterable<SelectItem> selectItems) |
static List<SelectItem> |
MetaModelHelper.getUnmaterializedScalarFunctionSelectItems(Iterable<SelectItem> selectItems,
DataSet dataSetWithMaterializedSelectItems)
Gets select items with scalar functions that haven't already been materialized in a data set.
|
Modifier and Type | Method and Description |
---|---|
static DataSet |
MetaModelHelper.getSelection(SelectItem[] selectItems,
DataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
protected Row |
QueryPostprocessDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue)
Executes a query which obtains a row by primary key (as defined by
Column.isPrimaryKey() ). |
static DataSet |
MetaModelHelper.getAggregated(List<SelectItem> workSelectItems,
DataSet dataSet)
Applies aggregate values to a dataset.
|
static List<SelectItem> |
MetaModelHelper.getAggregateFunctionSelectItems(Iterable<SelectItem> selectItems) |
static DataSet |
MetaModelHelper.getGrouped(List<SelectItem> selectItems,
DataSet dataSet,
Collection<GroupByItem> groupByItems) |
static List<SelectItem> |
MetaModelHelper.getScalarFunctionSelectItems(Iterable<SelectItem> selectItems) |
static DataSet |
MetaModelHelper.getSelection(List<SelectItem> selectItems,
DataSet dataSet) |
static List<SelectItem> |
MetaModelHelper.getUnmaterializedScalarFunctionSelectItems(Iterable<SelectItem> selectItems,
DataSet dataSetWithMaterializedSelectItems)
Gets select items with scalar functions that haven't already been materialized in a data set.
|
protected DataSet |
QueryPostprocessDataContext.materializeFromItem(FromItem fromItem,
List<SelectItem> selectItems) |
protected DataSet |
QueryPostprocessDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows)
Execute a simple one-table query against a table in the main schema of the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeMainSchemaTableSelect(Table table,
List<SelectItem> selectItems,
int firstRow,
int maxRows)
Executes a simple one-table query against a table in the main schema of the subclasses of this class.
|
protected DataSet |
QueryPostprocessDataContext.materializeTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows) |
Modifier and Type | Method and Description |
---|---|
protected Row |
CassandraDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Modifier and Type | Method and Description |
---|---|
protected Row |
CouchDbDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Modifier and Type | Method and Description |
---|---|
SelectItem |
SimpleDataSetHeader.getSelectItem(int index) |
SelectItem |
DataSetHeader.getSelectItem(int i) |
Modifier and Type | Method and Description |
---|---|
List<SelectItem> |
ScalarFunctionDataSet.getScalarFunctionSelectItemsToEvaluate() |
List<SelectItem> |
SimpleDataSetHeader.getSelectItems() |
List<SelectItem> |
Row.getSelectItems()
Gets the select items that represent the columns of the
DataSet
that this row pertains to. |
List<SelectItem> |
DataSetHeader.getSelectItems() |
List<SelectItem> |
DataSet.getSelectItems() |
List<SelectItem> |
AbstractRow.getSelectItems() |
List<SelectItem> |
AbstractDataSet.getSelectItems() |
Modifier and Type | Method and Description |
---|---|
Style |
Row.getStyle(SelectItem item) |
Style |
AbstractRow.getStyle(SelectItem item) |
Object |
Row.getValue(SelectItem item)
Gets the value of the provided SelectItem.
|
Object |
AbstractRow.getValue(SelectItem item) |
int |
SimpleDataSetHeader.indexOf(SelectItem item) |
int |
Row.indexOf(SelectItem item)
Gets the index of a SelectItem in the row.
|
int |
DataSetHeader.indexOf(SelectItem item) |
int |
DataSet.indexOf(SelectItem item)
Finds the index of a given SelectItem
|
int |
CachingDataSetHeader.indexOf(SelectItem item) |
int |
AbstractRow.indexOf(SelectItem item) |
int |
AbstractDataSet.indexOf(SelectItem item)
Finds the index of a given SelectItem
|
Constructor and Description |
---|
AbstractDataSet(SelectItem[] selectItems) |
RowPublisherDataSet(SelectItem[] selectItems,
int maxRows,
Action<RowPublisher> publishAction) |
RowPublisherDataSet(SelectItem[] selectItems,
int maxRows,
Action<RowPublisher> publishAction,
Closeable... closeables) |
SimpleDataSetHeader(SelectItem[] selectItems) |
SubSelectionDataSet(SelectItem[] selectItemsArray,
DataSet dataSet) |
Constructor and Description |
---|
AbstractDataSet(List<SelectItem> selectItems) |
CachingDataSetHeader(List<SelectItem> items) |
EmptyDataSet(List<SelectItem> selectItems) |
ScalarFunctionDataSet(List<SelectItem> scalarFunctionSelectItemsToEvaluate,
DataSet dataSet) |
SimpleDataSetHeader(List<SelectItem> items) |
SubSelectionDataSet(List<SelectItem> selectItems,
DataSet dataSet) |
Modifier and Type | Method and Description |
---|---|
protected Row |
DynamoDbDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Constructor and Description |
---|
AbstractElasticSearchDataSet(org.elasticsearch.action.search.SearchResponse searchResponse,
List<SelectItem> selectItems) |
Modifier and Type | Method and Description |
---|---|
protected Row |
ElasticSearchDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
protected DataSet |
ElasticSearchDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows) |
Modifier and Type | Method and Description |
---|---|
protected Row |
ElasticSearchRestDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
protected DataSet |
ElasticSearchRestDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows) |
Modifier and Type | Method and Description |
---|---|
protected Row |
HBaseDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractQueryRewriter.rewriteSelectItem(Query query,
SelectItem item) |
Modifier and Type | Method and Description |
---|---|
protected DataSet |
KafkaDataContext.materializeMainSchemaTable(Table table,
List<SelectItem> selectItems,
List<FilterItem> whereItems,
int firstRow,
int maxRows) |
protected DataSet |
KafkaDataContext.materializeMainSchemaTableFromConsumer(org.apache.kafka.clients.consumer.Consumer<K,V> consumer,
List<SelectItem> selectItems,
int offset,
int maxRows) |
Modifier and Type | Method and Description |
---|---|
protected Row |
MongoDbDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Modifier and Type | Method and Description |
---|---|
protected Row |
MongoDbDataContext.executePrimaryKeyLookupQuery(Table table,
List<SelectItem> selectItems,
Column primaryKeyColumn,
Object keyValue) |
Modifier and Type | Method and Description |
---|---|
protected SelectItem |
SelectItem.clone() |
protected SelectItem |
SelectItem.clone(Query clonedQuery)
Creates a clone of the
SelectItem for use within a cloned Query . |
static SelectItem |
SelectItem.getCountAllItem()
Generates a COUNT(*) select item
|
SelectItem[] |
FromItem.getLeftOn() |
SelectItem[] |
FromItem.getRightOn() |
SelectItem |
OrderByItem.getSelectItem() |
SelectItem |
GroupByItem.getSelectItem() |
SelectItem |
FilterItem.getSelectItem() |
SelectItem |
SelectClause.getSelectItem(Column column) |
SelectItem |
SelectItem.getSubQuerySelectItem() |
SelectItem |
SelectItem.replaceFunction(FunctionType function)
Creates a copy of the
SelectItem , with a different FunctionType . |
SelectItem |
SelectItem.replaceFunction(FunctionType function,
Object... functionParameters)
Creates a copy of the
SelectItem , with a different FunctionType and parameters. |
SelectItem |
SelectItem.replaceFunctionApproximationAllowed(boolean functionApproximationAllowed)
Creates a copy of the
SelectItem , with a different isFunctionApproximationAllowed() flag set. |
SelectItem |
SelectItem.setAlias(String alias) |
SelectItem |
SelectItem.setQuery(Query query) |
Modifier and Type | Method and Description |
---|---|
List<SelectItem> |
OrderByClause.getEvaluatedSelectItems() |
List<SelectItem> |
GroupByClause.getEvaluatedSelectItems() |
List<SelectItem> |
FilterClause.getEvaluatedSelectItems() |
Modifier and Type | Method and Description |
---|---|
boolean |
SelectItem.equalsIgnoreAlias(SelectItem that) |
boolean |
SelectItem.equalsIgnoreAlias(SelectItem that,
boolean exactColumnCompare) |
Object |
ToStringFunction.evaluate(Row row,
Object[] parameters,
SelectItem item) |
Object |
ToNumberFunction.evaluate(Row row,
Object[] parameters,
SelectItem item) |
Object |
ToDateFunction.evaluate(Row row,
Object[] parameters,
SelectItem item) |
Object |
ToBooleanFunction.evaluate(Row row,
Object[] parameters,
SelectItem item) |
Object |
SubstringFunction.evaluate(Row row,
Object[] parameters,
SelectItem operandItem) |
Object |
ScalarFunction.evaluate(Row row,
Object[] parameters,
SelectItem operandItem)
Applies and evaluates the function on a particular row of data.
|
Object |
MapValueFunction.evaluate(Row row,
Object[] parameters,
SelectItem operandItem) |
static boolean |
SelectItem.isCountAllItem(SelectItem item) |
Query |
Query.select(SelectItem... items) |
Query |
Query.where(SelectItem selectItem,
OperatorType operatorType,
Object operand) |
Constructor and Description |
---|
FilterItem(SelectItem selectItem,
OperatorType operator,
Object operand)
Creates a single filter item based on a SelectItem, an operator and an
operand.
|
FromItem(JoinType join,
FromItem leftSide,
FromItem rightSide,
SelectItem[] leftOn,
SelectItem[] rightOn)
Constructor for advanced join types with custom relationships
|
FromItem(JoinType join,
FromItem leftSide,
FromItem rightSide,
SelectItem[] leftOn,
SelectItem[] rightOn)
Constructor for advanced join types with custom relationships
|
GroupByItem(SelectItem selectItem)
Constructs a GROUP BY item based on a select item that should be grouped.
|
OrderByItem(SelectItem selectItem)
Creates an ascending OrderByItem
|
OrderByItem(SelectItem selectItem,
OrderByItem.Direction direction)
Creates an OrderByItem
|
SelectItem(SelectItem subQuerySelectItem,
FromItem subQueryFromItem)
Creates a SelectItem that references another select item in a subquery
|
Modifier and Type | Method and Description |
---|---|
HavingBuilder |
GroupedQueryBuilder.having(SelectItem selectItem) |
Constructor and Description |
---|
AbstractFilterBuilder(SelectItem selectItem) |
Modifier and Type | Method and Description |
---|---|
SelectItem |
SelectItemParser.findSelectItem(String expression)
Finds/creates a SelectItem based on the given expression.
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.