public StructType defineQueryResultType ( String name , Map < String , IDataType > tempTypes , AttributeDefinition ... attrDefs ) throws AtlasException { AttributeInfo [ ] infos = new AttributeInfo [ attrDefs . length ] ; for ( int i = 0 ; i < attrDefs . length ; i ++ ) { infos [ i ] = new AttributeInfo ( this , attrDefs [ i ] , tempTypes ) ; } return new StructType ( this , name , null , infos ) ; }
construct a temporary StructType for a Query Result . This is not registered in the typeSystem . The attributes in the typeDefinition can only reference permanent types .