public class TableColumn extends Column
| Modifier and Type | Field and Description |
|---|---|
protected Pair3<Long,Long,String> |
endPosition |
protected String |
name |
protected Pair3<Long,Long,String> |
startPosition |
| Constructor and Description |
|---|
TableColumn(Table table,
String columnName)
Constructor for MDX and other non-SQL columns where only a name is available.
|
TableColumn(Table table,
TConstant columnObject) |
TableColumn(Table table,
TConstant columnObject,
int columnIndex) |
TableColumn(Table table,
TExpression columnObject,
int columnIndex) |
TableColumn(Table table,
TFunctionCall columnObject) |
TableColumn(Table table,
TObjectName columnObject) |
TableColumn(Table view,
TObjectName columnObject,
int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindStarLinkColumns(Map<String,Set<TObjectName>> starLinkColumns)
Deprecated.
|
List<Object> |
getCandidateParents() |
Integer |
getColumnIndex() |
protected String |
getColumnName(TExpression expr) |
TObjectName |
getColumnObject() |
String |
getDataType() |
TableColumn |
getDeclaredColumn()
The declared column a field path node belongs to, the column itself for a column.
|
TableColumn |
getDeclaredElement()
The node of the element of this column or field when a declared ARRAY type made one,
items[*]; else null. |
List<TableColumn> |
getDeclaredFields()
The fields of this column or field as its declared STRUCT type lists them, each a field path node, in order;
empty when no declared type lists them, so the fields are not known.
|
DeclaredTypeNode.Kind |
getDeclaredKind()
The kind of type the DDL declares this column or field with; null when no DDL declares it.
|
String |
getDisplayName() |
Pair3<Long,Long,String> |
getEndPosition() |
StructuredColumnPath |
getFieldPath()
For a field path node, its path under the declared column; null for a column.
|
Boolean |
getForeignKey() |
long |
getId() |
CanonKey |
getIdentifierKey()
Null for expressions, wildcards and other non-identifier model names.
|
Boolean |
getIndexKey() |
String |
getName()
The column's name as the model publishes it (a display string, not an identity).
|
TableColumn |
getParentColumn()
For a field path node, the node it is a field or an array element of; null for a column.
|
Boolean |
getPrimaryKey() |
TableColumn |
getSourceColumn() |
Pair3<Long,Long,String> |
getStartPosition() |
Table |
getTable() |
List<Transform> |
getTransforms() |
Boolean |
getUnqiueKey() |
Table |
getView() |
boolean |
isDeclaredField()
Whether the declaration in force made this field path node, rather than a read.
|
boolean |
isExpandStar() |
boolean |
isFieldPathNode()
Whether this is a field path node (a field or an array element of a column), not a column of its own.
|
boolean |
isFieldsDeclared()
Whether the STRUCT type this column or field is declared with lists its fields, each a field path node, under
the declaration in force at the statement being analyzed (
Table.getActiveFieldDeclaration()). |
boolean |
isNotBindStarLinkColumn() |
boolean |
isPseduo() |
boolean |
isShowStar() |
boolean |
isStruct() |
boolean |
isVariant() |
void |
notBindStarLinkColumn(boolean notBindStarColumn) |
void |
setCandidateParents(List<Object> candidateParents) |
void |
setColumnIndex(int columnIndex) |
void |
setDataType(String dataType) |
void |
setDeclaredField(boolean declaredField)
Records, in the declaration being made, that a declared type made this field path node.
|
void |
setDeclaredKind(DeclaredTypeNode.Kind declaredKind) |
void |
setDisplayName(String displayName) |
void |
setEndPosition(Pair3<Long,Long,String> endPosition) |
void |
setExpandStar(boolean expandStar) |
void |
setFieldsDeclared(boolean fieldsDeclared)
Records, in the declaration being made, that this column's or field's declared STRUCT type lists its fields.
|
void |
setForeignKey(Boolean foreignKey) |
void |
setIndexKey(Boolean indexKey) |
void |
setPrimaryKey(Boolean primaryKey) |
void |
setPseduo(boolean isPseduo) |
void |
setShowStar(boolean showStar) |
void |
setSourceColumn(TableColumn sourceColumn) |
void |
setStartPosition(Pair3<Long,Long,String> startPosition) |
void |
setStruct(boolean isStruct) |
void |
setTransform(Transform transform) |
void |
setUnqiueKey(Boolean unqiueKey) |
void |
setVariant(boolean isVariant) |
protected boolean |
supportProperty()
Deprecated.
read
NestedAccessProfile.publishesPropertyNames() of the analysis's vendor. |
String |
toString() |
appendStarSourceColumn, bindStarLinkColumn, containsStarLinkColumn, getStarLinkColumnList, getStarLinkColumnName, getStarLinkColumnNames, getStarLinkColumns, getStarSourceColumns, hasStarLinkColumn, inheritIdentifier, inheritStarColumn, isRenamedForCollision, isStarColumn, matchesIdentifier, mergeStarLinksFrom, nameOfCatalogColumn, nameOfColumn, nameOfText, removeStarLinkOf, setIdentifierKey, setStarColumn, shareStarLinksFrom, starLinkCatalogSpelling, starLinkCount, starLinkIdentifier, starLinkIndexOf, starLinkIndexOf, starLinkKey, starLinkMatcher, starLinkName, starLinkNameNode, starLinkNamesColumn, starLinksGroupedByIdentity, starLinkSqlSpellingprotected Pair3<Long,Long,String> startPosition
protected Pair3<Long,Long,String> endPosition
public TableColumn(Table view, TObjectName columnObject, int index)
public TableColumn(Table table, TObjectName columnObject)
public TableColumn(Table table, String columnName)
public TableColumn(Table table, TConstant columnObject, int columnIndex)
public TableColumn(Table table, TConstant columnObject)
public TableColumn(Table table, TFunctionCall columnObject)
public TableColumn(Table table, TExpression columnObject, int columnIndex)
public CanonKey getIdentifierKey()
ColumngetIdentifierKey in class Column@Deprecated protected boolean supportProperty()
NestedAccessProfile.publishesPropertyNames() of the analysis's vendor.protected String getColumnName(TExpression expr)
public long getId()
public String getName()
Columnpublic Pair3<Long,Long,String> getStartPosition()
public Pair3<Long,Long,String> getEndPosition()
public void setStartPosition(Pair3<Long,Long,String> startPosition)
public void setEndPosition(Pair3<Long,Long,String> endPosition)
public TObjectName getColumnObject()
@Deprecated public void bindStarLinkColumns(Map<String,Set<TObjectName>> starLinkColumns)
Column.shareStarLinksFrom(Column)putAll does: a link of a published name this column already has is
replaced, a new one is appended. The map of another column (Column.getStarLinkColumns()) shares that column's
links, as Column.shareStarLinksFrom(Column) does.public boolean isShowStar()
public void setShowStar(boolean showStar)
public Integer getColumnIndex()
public boolean isVariant()
public void setVariant(boolean isVariant)
public String getDisplayName()
public void setDisplayName(String displayName)
public void setExpandStar(boolean expandStar)
public boolean isExpandStar()
public boolean isPseduo()
public void setPseduo(boolean isPseduo)
public void notBindStarLinkColumn(boolean notBindStarColumn)
public boolean isNotBindStarLinkColumn()
public Boolean getPrimaryKey()
public void setPrimaryKey(Boolean primaryKey)
public Boolean getUnqiueKey()
public void setUnqiueKey(Boolean unqiueKey)
public Boolean getIndexKey()
public void setIndexKey(Boolean indexKey)
public Boolean getForeignKey()
public void setForeignKey(Boolean foreignKey)
public String getDataType()
public void setDataType(String dataType)
public void setColumnIndex(int columnIndex)
public boolean isStruct()
public void setStruct(boolean isStruct)
public List<Transform> getTransforms()
public void setTransform(Transform transform)
public List<Object> getCandidateParents()
public void setCandidateParents(List<Object> candidateParents)
public TableColumn getSourceColumn()
public boolean isFieldPathNode()
public TableColumn getParentColumn()
public StructuredColumnPath getFieldPath()
public List<TableColumn> getDeclaredFields()
public TableColumn getDeclaredElement()
items[*]; else null.public boolean isFieldsDeclared()
Table.getActiveFieldDeclaration()).public void setFieldsDeclared(boolean fieldsDeclared)
public void setDeclaredField(boolean declaredField)
public boolean isDeclaredField()
public DeclaredTypeNode.Kind getDeclaredKind()
public void setDeclaredKind(DeclaredTypeNode.Kind declaredKind)
public TableColumn getDeclaredColumn()
public void setSourceColumn(TableColumn sourceColumn)