/** * Constructor. * * @param logicalTableName Name for the table identifier * @param granularity Granularity of the table identifier */ public TableIdentifier(String logicalTableName, Granularity granularity) { super(logicalTableName, getGranularityPeriod(granularity)); }
/** * Builder. * * @param request API Request for which to build a table identifier * * @return the table identifier for the request */ public static TableIdentifier create(DataApiRequest request) { return new TableIdentifier(request.getTable().getName(), getGranularityPeriod(request.getGranularity())); }