forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add selectDistinct / countBy to table API
Partial deephaven#1617
- Loading branch information
1 parent
9ef33fe
commit d9d8fb1
Showing
12 changed files
with
270 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
qst/src/main/java/io/deephaven/qst/table/CountByTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.deephaven.qst.table; | ||
|
||
import io.deephaven.annotations.NodeStyle; | ||
import io.deephaven.api.ColumnName; | ||
import org.immutables.value.Value.Immutable; | ||
|
||
@Immutable | ||
@NodeStyle | ||
public abstract class CountByTable extends ByTableBase { | ||
|
||
public static Builder builder() { | ||
return ImmutableCountByTable.builder(); | ||
} | ||
|
||
public abstract ColumnName countName(); | ||
|
||
@Override | ||
public final <V extends Visitor> V walk(V visitor) { | ||
visitor.visit(this); | ||
return visitor; | ||
} | ||
|
||
public interface Builder extends ByTableBase.Builder<CountByTable, CountByTable.Builder> { | ||
|
||
Builder countName(ColumnName countName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
qst/src/main/java/io/deephaven/qst/table/SelectDistinctTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package io.deephaven.qst.table; | ||
|
||
import io.deephaven.annotations.NodeStyle; | ||
import org.immutables.value.Value.Immutable; | ||
|
||
@Immutable | ||
@NodeStyle | ||
public abstract class SelectDistinctTable extends ByTableBase { | ||
|
||
public static Builder builder() { | ||
return ImmutableSelectDistinctTable.builder(); | ||
} | ||
|
||
@Override | ||
public final <V extends Visitor> V walk(V visitor) { | ||
visitor.visit(this); | ||
return visitor; | ||
} | ||
|
||
public interface Builder extends ByTableBase.Builder<SelectDistinctTable, SelectDistinctTable.Builder> { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.