public String getTableName() { BasicStatsWork work = this; if (work.getLoadTableDesc() != null) { return work.getLoadTableDesc().getTable().getTableName(); } else if (work.getTableSpecs() != null) { return work.getTableSpecs().tableName; } else if (getLoadFileDesc().getCtasCreateTableDesc() != null) { return getLoadFileDesc().getCtasCreateTableDesc().getTableName(); } else { return getLoadFileDesc().getCreateViewDesc().getViewName(); } }
@Explain(vectorization = Vectorization.EXPRESSION, displayName = "bigTableValueExpressions", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public List<String> getBigTableValueExpressions() { return vectorExpressionsToStringList( isNative ? vectorMapJoinInfo.getSlimmedBigTableValueExpressions() : vectorMapJoinDesc.getAllBigTableValueExpressions()); }
@Explain(vectorization = Vectorization.DETAIL, displayName = "fullOuterSmallTableKeyMapping", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public List<String> getFullOuterSmallTableKeyMapping() { if (!isNative || vectorMapJoinDesc.getVectorMapJoinVariation() != VectorMapJoinVariation.FULL_OUTER) { return null; } return columnMappingToStringList(vectorMapJoinInfo.getFullOuterSmallTableKeyMapping()); }
public Map<String, String> getTblProps() { switch (getDescType()) { case TABLE: return createTblDesc.getTblProps(); case VIEW: return createViewDesc.getTblProps(); } return null; }
@Explain(vectorization = Vectorization.EXPRESSION, displayName = "hashTableImplementationType", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public String hashTableImplementationType() { if (!isNative) { return null; } return vectorMapJoinDesc.getHashTableImplementationType().name(); }
public String getInputFormat() { switch (getDescType()) { case TABLE: return createTblDesc.getInputFormat(); case VIEW: return createViewDesc.getInputFormat(); } return null; }
public String getSerName() { switch (getDescType()) { case TABLE: return createTblDesc.getSerName(); case VIEW: return createViewDesc.getSerde(); } return null; }
@Explain(vectorization = Vectorization.OPERATOR, displayName = "SMB Map Join Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public SMBJoinOperatorExplainVectorization getSMBJoinVectorization() { VectorSMBJoinDesc vectorSMBJoinDesc = (VectorSMBJoinDesc) getVectorDesc(); if (vectorSMBJoinDesc == null || !(this instanceof SMBJoinDesc)) { return null; } return new SMBJoinOperatorExplainVectorization((SMBJoinDesc) this, vectorSMBJoinDesc); }
public String getOutputFormat() { switch (getDescType()) { case TABLE: return createTblDesc.getOutputFormat(); case VIEW: return createViewDesc.getOutputFormat(); } return null; }
@Explain(vectorization = Vectorization.SUMMARY, displayName = "Fetch Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public FetchExplainVectorization getMapExplainVectorization() { if (!getVectorizationExamined()) { return null; } return new FetchExplainVectorization(this); } @Explain(displayName = "Cached Query Result", displayOnlyOnTrue = true, explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED })
@Explain(vectorization = Vectorization.OPERATOR, displayName = "nativeConditionsMet", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public List<String> getNativeConditionsMet() { if (nativeConditions == null) { nativeConditions = createNativeConditions(); } return VectorizationCondition.getConditionsMet(nativeConditions); }
@Explain(vectorization = Vectorization.OPERATOR, displayName = "Select Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public SelectOperatorExplainVectorization getSelectVectorization() { VectorSelectDesc vectorSelectDesc = (VectorSelectDesc) getVectorDesc(); if (vectorSelectDesc == null) { return null; } return new SelectOperatorExplainVectorization(this, vectorSelectDesc); }
@Explain(vectorization = Vectorization.OPERATOR, displayName = "Filter Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public FilterOperatorExplainVectorization getFilterVectorization() { VectorFilterDesc vectorFilterDesc = (VectorFilterDesc) getVectorDesc(); if (vectorFilterDesc == null) { return null; } return new FilterOperatorExplainVectorization(this, vectorFilterDesc); }
public List<FieldSchema> getPartCols() { switch (getDescType()) { case TABLE: return createTblDesc.getPartCols(); case VIEW: return createViewDesc.getPartCols(); } return null; }
@Explain(vectorization = Vectorization.DETAIL, displayName = "projectedOutput", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public List<String> getProjectedOutputColumnNums() { if (!isNative) { return null; } return outputColumnsAndTypesToStringList(vectorMapJoinInfo.getProjectionMapping()); }
@Explain(vectorization = Vectorization.OPERATOR, displayName = "App Master Event Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public AppMasterEventOperatorExplainVectorization getAppMasterEventVectorization() { VectorAppMasterEventDesc vectorAppMasterEventDesc = (VectorAppMasterEventDesc) getVectorDesc(); if (vectorAppMasterEventDesc == null) { return null; } return new AppMasterEventOperatorExplainVectorization(this, vectorAppMasterEventDesc); }
@Explain(vectorization = Explain.Vectorization.OPERATOR, displayName = "keyExpressions", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public List<String> getKeyExpressions() { return vectorExpressionsToStringList(vectorTopNKeyDesc.getKeyExpressions()); } }
@Explain(vectorization = Vectorization.OPERATOR, displayName = "PTF Vectorization", explainLevels = { Level.DEFAULT, Level.EXTENDED }) public PTFOperatorExplainVectorization getPTFVectorization() { VectorPTFDesc vectorPTFDesc = (VectorPTFDesc) getVectorDesc(); if (vectorPTFDesc == null) { return null; } return new PTFOperatorExplainVectorization(this, vectorPTFDesc); } }
public List<Order> getSortCols() { if (TYPE.TABLE.equals(getDescType())) { return createTblDesc.getSortCols(); } return null; }
public void setExternal(boolean isExternal) { if (TYPE.TABLE.equals(getDescType())) { createTblDesc.setExternal(isExternal); } }