Package org.teiid.olingo.service
Class DocumentNode
- java.lang.Object
-
- org.teiid.olingo.service.DocumentNode
-
- Direct Known Subclasses:
ApplyDocumentNode
,ComplexDocumentNode
,CrossJoinNode
,ExpandDocumentNode
,NoDocumentNode
public class DocumentNode extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DocumentNode.ContextColumn
static class
DocumentNode.TableContextColumn
-
Field Summary
Fields Modifier and Type Field Description protected LinkedHashMap<Expression,ProjectedColumn>
projectedColumns
protected LinkedHashMap<String,ProjectedColumn>
projectedColumnsByName
-
Constructor Summary
Constructors Constructor Description DocumentNode()
DocumentNode(Table table, GroupSymbol gs, org.apache.olingo.commons.api.edm.EdmEntityType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAllColumns(boolean onlyPK)
protected void
addColumns(Select select, AtomicInteger ordinal, List<ProjectedColumn> projected)
void
addCriteria(Expression filter)
void
addExpand(ExpandDocumentNode resource)
protected void
addProjectedColumn(String columnName, Expression expr)
protected ProjectedColumn
addProjectedColumn(Expression expr, org.apache.olingo.commons.api.edm.EdmType type, org.apache.olingo.commons.api.edm.EdmProperty property, boolean collection)
void
addSibling(DocumentNode resource)
static DocumentNode
build(org.apache.olingo.commons.api.edm.EdmEntityType type, List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates, MetadataStore metadata, org.apache.olingo.server.api.OData odata, org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator, boolean useAlias, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService)
static DocumentNode
build(DocumentNode resource, org.apache.olingo.commons.api.edm.EdmEntityType type, List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates, MetadataStore metadata, org.apache.olingo.server.api.OData odata, org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator, boolean useAlias, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService)
Query
buildQuery()
List<ProjectedColumn>
getAllProjectedColumns()
DocumentNode.ContextColumn
getColumnByName(String name)
Criteria
getCriteria()
org.apache.olingo.commons.api.edm.EdmStructuredType
getEdmStructuredType()
List<ExpandDocumentNode>
getExpands()
FromClause
getFromClause()
String
getFullName()
GroupSymbol
getGroupSymbol()
DocumentNode
getIterator()
List<String>
getKeyColumnNames()
List<org.apache.olingo.server.api.uri.UriParameter>
getKeyPredicates()
String
getName()
LinkedHashMap<Expression,ProjectedColumn>
getProjectedColumns()
List<DocumentNode>
getSiblings()
void
setCriteria(Criteria criteria)
void
setEdmStructuredType(org.apache.olingo.commons.api.edm.EdmStructuredType edmStructuredType)
void
setFromClause(FromClause fromClause)
void
setGroupSymbol(GroupSymbol groupSymbol)
void
setIterator(DocumentNode itResource)
void
setKeyPredicates(List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates)
void
setTable(Table table)
protected List<ProjectedColumn>
sortColumns(Collection<ProjectedColumn> toSort)
String
toString()
-
-
-
Field Detail
-
projectedColumns
protected LinkedHashMap<Expression,ProjectedColumn> projectedColumns
-
projectedColumnsByName
protected LinkedHashMap<String,ProjectedColumn> projectedColumnsByName
-
-
Constructor Detail
-
DocumentNode
public DocumentNode()
-
DocumentNode
public DocumentNode(Table table, GroupSymbol gs, org.apache.olingo.commons.api.edm.EdmEntityType type)
-
-
Method Detail
-
build
public static DocumentNode build(org.apache.olingo.commons.api.edm.EdmEntityType type, List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates, MetadataStore metadata, org.apache.olingo.server.api.OData odata, org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator, boolean useAlias, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService) throws TeiidException
- Throws:
TeiidException
-
build
public static DocumentNode build(DocumentNode resource, org.apache.olingo.commons.api.edm.EdmEntityType type, List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates, MetadataStore metadata, org.apache.olingo.server.api.OData odata, org.teiid.olingo.service.TeiidServiceHandler.UniqueNameGenerator nameGenerator, boolean useAlias, org.apache.olingo.server.api.uri.UriInfo uriInfo, org.teiid.olingo.service.ODataSQLBuilder.URLParseService parseService) throws TeiidException
- Throws:
TeiidException
-
getName
public String getName()
-
getColumnByName
public DocumentNode.ContextColumn getColumnByName(String name)
-
getFullName
public String getFullName()
-
getGroupSymbol
public GroupSymbol getGroupSymbol()
-
getEdmStructuredType
public org.apache.olingo.commons.api.edm.EdmStructuredType getEdmStructuredType()
-
getFromClause
public FromClause getFromClause()
-
setFromClause
public void setFromClause(FromClause fromClause)
-
getCriteria
public Criteria getCriteria()
-
setCriteria
public void setCriteria(Criteria criteria)
-
setTable
public void setTable(Table table)
-
setGroupSymbol
public void setGroupSymbol(GroupSymbol groupSymbol)
-
setEdmStructuredType
public void setEdmStructuredType(org.apache.olingo.commons.api.edm.EdmStructuredType edmStructuredType)
-
addAllColumns
protected void addAllColumns(boolean onlyPK)
-
addProjectedColumn
protected void addProjectedColumn(String columnName, Expression expr)
-
addProjectedColumn
protected ProjectedColumn addProjectedColumn(Expression expr, org.apache.olingo.commons.api.edm.EdmType type, org.apache.olingo.commons.api.edm.EdmProperty property, boolean collection)
-
getProjectedColumns
public LinkedHashMap<Expression,ProjectedColumn> getProjectedColumns()
-
getAllProjectedColumns
public List<ProjectedColumn> getAllProjectedColumns()
-
getKeyPredicates
public List<org.apache.olingo.server.api.uri.UriParameter> getKeyPredicates()
-
setKeyPredicates
public void setKeyPredicates(List<org.apache.olingo.server.api.uri.UriParameter> keyPredicates)
-
addSibling
public void addSibling(DocumentNode resource)
-
getSiblings
public List<DocumentNode> getSiblings()
-
addExpand
public void addExpand(ExpandDocumentNode resource)
-
getExpands
public List<ExpandDocumentNode> getExpands()
-
buildQuery
public Query buildQuery()
-
sortColumns
protected List<ProjectedColumn> sortColumns(Collection<ProjectedColumn> toSort)
-
addColumns
protected void addColumns(Select select, AtomicInteger ordinal, List<ProjectedColumn> projected)
-
addCriteria
public void addCriteria(Expression filter)
-
setIterator
public void setIterator(DocumentNode itResource)
-
getIterator
public DocumentNode getIterator()
-
-