@Override public SchemaResult getSchemaResult(SchemaQuery schemaQuery) { Map<String, String> schemaKeys = schemaQuery.getSchemaKeys(); List<Schema> data = null; if (schemaKeys == null) { data = table.getAllDataPoints(); } else { data = table.getDataPoints(schemaKeys); } if (schemaComparator != null) { Collections.sort(data, schemaComparator); } if (data.isEmpty()) { return null; } return new SchemaResult(schemaQuery, data); }