code: 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);
      }
docs: 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.
  @param name     struct type name
  @param attrDefs struct type definition
  @return temporary struct type
  @throws AtlasException