Skip to content

Commit

Permalink
Deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Caideyipi committed Jan 9, 2025
1 parent 3276a6a commit 310716c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public abstract class AbstractQueryDeviceWithCache extends AbstractTraverseDevic
// For query devices fully in cache
protected List<ShowDevicesResult> results = new ArrayList<>();

protected Query query;

protected AbstractQueryDeviceWithCache(
final NodeLocation location, final Table table, final Expression rawExpression) {
super(location, table, rawExpression);
Expand Down Expand Up @@ -89,8 +87,6 @@ public static List<ColumnHeader> getDeviceColumnHeaderList(
.collect(Collectors.toList());
}

public abstract Query getQuery();

public abstract DatasetHeader getDataSetHeader();

public abstract TsBlock getTsBlock(final Analysis analysis);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,6 @@ public CountDevice(
super(location, table, rawExpression);
}

@Override
public Query getQuery() {
return QueryUtil.simpleQuery(
new Select(
false,
Collections.singletonList(
new SingleColumn(
new FunctionCall(
QualifiedName.of(Collections.singletonList(new Identifier("count"))),
Collections.emptyList()),
new Identifier("count(devices)")))),
getTable(),
Optional.ofNullable(where),
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty());
}

@Override
public DatasetHeader getDataSetHeader() {
return new DatasetHeader(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ public Node getLimit() {
return limit;
}

@Override
public Query getQuery() {
return QueryUtil.simpleQuery(
new Select(false, Collections.singletonList(new AllColumns())),
getTable(),
Optional.ofNullable(where),
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.empty(),
Optional.ofNullable(offset),
Optional.ofNullable(limit));
}

@Override
public DatasetHeader getDataSetHeader() {
return new DatasetHeader(columnHeaderList, true);
Expand Down

0 comments on commit 310716c

Please sign in to comment.