Data Visualization Adapters

Data Visualization encompasses the creation of graphical representations, including charts and graphs. These visual elements offer a means to discern patterns and trends within the data, aiding in the derivation of informed conclusions. Once the processes of gathering and refining data have reached completion, the subsequent phase involves crafting data visualizations to enhance the clarity of data-driven insights.

The data lake output is mapped to the visualization components. Data from file system or database is selected from the data lake and consumed to create charts and graphs.

You can use the following APIs for extending the functionality of data visualization.

GenericAppService
createApp ()
  • This method takes GenericCreateAppBean bean as argument.

  • It creates the App in BI Tool.

  • It returns GenericAppResponse bean as response.

getApp ()
  • This method takes appId as argument.

  • It fetches the App from BI Tool based on the appId.

  • It returns GenericAppResponse bean as response.

updateApp ()
  • This method takes appId and GenericUpdateAppBean bean as argument.

  • It updates the App in Bi Tool.

  • It returns GenericAppResponse bean as response.

deleteApp ()
  • This method takes appId as argument.

  • It deletes the App in BI Tool.

  • It returns deleted appId as response.

reloadApp ()
  • This method takes appId as argument.

  • It refreshes the App in BI Tool with latest data.

  • It returns appId as response.

GenericDataService
getSupportedTypes ()
  • This method returns all data types that are supported in BI tool.

  • It fetches all the supported data types.

  • It returns a list of the supported data types.

TestConnection ()
  • This method takes GenericDataRequest bean as argument.

  • It validates the credentials of the data request.

  • It returns a boolean for succesful or failed connection.

createConnection ()
  • This method takes GenericDataRequest bean as argument.

  • It creates the data connection in the BI tool.

  • It returns GenericDataResponse bean as response.

   
getConnection ()
  • This method takes dataConnectionId as argument.

  • It fetches the data connection from BI tool for the requested Id.

  • It returns GenericDataResponse bean as response.

GenericSpaceService
getAllSpaces ()
  • This method fetches all the spaces present in the BI tool.

  • It returns list of GenericSpaceResponse bean as response.

getSpace ()
  • This method takes SpaceId as argument.

  • It fetches the space from the BI tool.

  • It returns GenericSpaceResponse bean as response.

createSpace ()
  • This method takes SpaceId as argument.

  • It fetches the space from BI tool.

  • It returns GenericSpaceResponse bean as response.

The following diagram depicts the overall flow for creating dashboards in the BI tool.

Following are some Bean examples:

  • GenericSpaceCreateBean

    Copy
    @Data
    public class GenericSpaceCreateBean {
     
    public String name;
    public String description;
    public SpaceTypeEnum type;
    }

 

  • GenericSpaceResponse

Copy
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GenericSpaceResponse  implements Serializable {
 
private static final long serialVersionUID = -6012713314099113224L;
 
private String id;
private String name;
private String type;
private String description;
private LocalDateTime updatedAt;
 
}

 

  • GenericCreateAppBean

Copy

@Data@JsonInclude(JsonInclude.Include.NON_NULL)public class GenericCreateAppBean { private String name;private String description;private String spaceId;private String spaceName;private String repositoryId; }

@Data 

@JsonInclude(JsonInclude.Include.NON_NULL) 

public class GenericCreateAppBean { 

  

private String name; 

private String description; 

private String spaceId; 

private String spaceName; 

private String repositoryId; 

  

} 

 

  • GenericAppResponse

Copy
@Data 

@NoArgsConstructor 

@AllArgsConstructor 

public class GenericAppResponse implements Serializable { 

  

private static final long serialVersionUID = -6012713314099113224L; 

  

private String id; 

private String name; 

private String description; 

private String resourceType; 

private String resourceId; 

private GenericUser owner; 

private String access; 

private LocalDateTime updatedAt; 

private List<String> collectionIds; 

private String link; 

} 

Related Topics Link IconRecommended Topics

What's next? Integrate with External Data Catalogs