use of org.teiid.resource.adapter.google.v4.SpreadsheetMetadataExtractor in project teiid by teiid.
the class SpreadsheetConnectionImpl4 method getSpreadsheetInfo.
@Override
public SpreadsheetInfo getSpreadsheetInfo() {
SpreadsheetInfo info = spreadsheetInfo.get();
if (info == null) {
synchronized (spreadsheetInfo) {
info = spreadsheetInfo.get();
if (info == null) {
SpreadsheetMetadataExtractor metadataExtractor = new SpreadsheetMetadataExtractor(sheetsAPI, googleDataProtocolAPI);
info = metadataExtractor.extractMetadata(config.getSpreadsheetId());
spreadsheetInfo.set(info);
}
}
}
return info;
}
Aggregations