ConnectorUtils.sort(qualifiedNames, sort, Comparator.comparing(QualifiedName::toString)); return ConnectorUtils.paginate(qualifiedNames, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
ConnectorUtils.sort(qualifiedNames, sort, Comparator.comparing(QualifiedName::toString)); return ConnectorUtils.paginate(qualifiedNames, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
/** * {@inheritDoc}. */ @Override public List<QualifiedName> listNames( final ConnectorRequestContext requestContext, final QualifiedName name, @Nullable final QualifiedName prefix, @Nullable final Sort sort, @Nullable final Pageable pageable ) { try { final List<QualifiedName> qualifiedNames = Lists.newArrayList(); final String tableFilter = (prefix != null && prefix.isTableDefinition()) ? prefix.getTableName() : null; for (String tableName : this.druidClient.getAllDataSources()) { final QualifiedName qualifiedName = QualifiedName.ofTable(name.getCatalogName(), name.getDatabaseName(), tableName); if (tableFilter == null || tableName.startsWith(tableFilter)) { qualifiedNames.add(qualifiedName); } } if (sort != null) { ConnectorUtils.sort(qualifiedNames, sort, Comparator.comparing(QualifiedName::toString)); } return ConnectorUtils.paginate(qualifiedNames, pageable); } catch (Exception exception) { throw new ConnectorException(String.format("Failed listNames druid table %s", name), exception); } } }
final List<QualifiedName> results = ConnectorUtils.paginate(names, pageable); log.debug("Finished listing keyspaces for request {}", context); return results;
final List<QualifiedName> results = ConnectorUtils.paginate(names, pageable); log.debug("Finished listing keyspaces for request {}", context); return results;
return ConnectorUtils.paginate(filteredPartitionList, pageable); } catch (NoSuchObjectException exception) { throw new TableNotFoundException(tableName, exception);
final List<QualifiedName> paged = ConnectorUtils.paginate(tableNames, pageable);
return ConnectorUtils.paginate(filteredPartitionList, pageable); } catch (NoSuchObjectException exception) { throw new TableNotFoundException(tableName, exception);
final List<QualifiedName> paged = ConnectorUtils.paginate(tableNames, pageable);
final List<TableInfo> pagedTables = ConnectorUtils.paginate(tables, pageable);
ConnectorUtils.sort(databaseInfos, sort, Comparator.comparing(p -> p.getName().getDatabaseName())); return ConnectorUtils.paginate(databaseInfos, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
ConnectorUtils.sort(databaseInfos, sort, Comparator.comparing(p -> p.getName().getDatabaseName())); return ConnectorUtils.paginate(databaseInfos, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
ConnectorUtils.sort(qualifiedNames, sort, Comparator.comparing(QualifiedName::toString)); return ConnectorUtils.paginate(qualifiedNames, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
ConnectorUtils.sort(qualifiedNames, sort, Comparator.comparing(QualifiedName::toString)); return ConnectorUtils.paginate(qualifiedNames, pageable); } catch (MetaException exception) { throw new InvalidMetaException(name, exception);
ConnectorUtils.sort(tableInfos, sort, Comparator.comparing(p -> p.getName().getTableName())); return ConnectorUtils.paginate(tableInfos, pageable); } catch (MetaException exception) { throw new DatabaseNotFoundException(name, exception);
ConnectorUtils.sort(tableInfos, sort, Comparator.comparing(p -> p.getName().getTableName())); return ConnectorUtils.paginate(tableInfos, pageable); } catch (MetaException exception) { throw new DatabaseNotFoundException(name, exception);
return ConnectorUtils.paginate(names, pageable);
return ConnectorUtils.paginate(names, pageable);
ConnectorUtils.sort(filteredPartitionList, sort, nameComparator); return ConnectorUtils.paginate(filteredPartitionList, pageable);
ConnectorUtils.sort(filteredPartitionList, sort, nameComparator); return ConnectorUtils.paginate(filteredPartitionList, pageable);