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.
Stateful Selectables and SelectColumns
- Loading branch information
1 parent
e29e7c6
commit c906306
Showing
12 changed files
with
157 additions
and
76 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
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
95 changes: 95 additions & 0 deletions
95
engine/table/src/main/java/io/deephaven/engine/table/impl/select/StatefulSelectColumn.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,95 @@ | ||
/** | ||
* Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.engine.table.impl.select; | ||
|
||
import io.deephaven.engine.rowset.TrackingRowSet; | ||
import io.deephaven.engine.table.ColumnDefinition; | ||
import io.deephaven.engine.table.ColumnSource; | ||
import io.deephaven.engine.table.WritableColumnSource; | ||
import io.deephaven.engine.table.impl.MatchPair; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class StatefulSelectColumn implements SelectColumn { | ||
private final SelectColumn inner; | ||
|
||
public StatefulSelectColumn(final SelectColumn inner) { | ||
this.inner = inner; | ||
} | ||
|
||
@Override | ||
public List<String> initInputs( | ||
@NotNull final TrackingRowSet rowSet, | ||
@NotNull final Map<String, ? extends ColumnSource<?>> columnsOfInterest) { | ||
return inner.initInputs(rowSet, columnsOfInterest); | ||
} | ||
|
||
@Override | ||
public List<String> initDef( | ||
@NotNull final Map<String, ColumnDefinition<?>> columnDefinitionMap) { | ||
return inner.initDef(columnDefinitionMap); | ||
} | ||
|
||
@Override | ||
public Class<?> getReturnedType() { | ||
return inner.getReturnedType(); | ||
} | ||
|
||
@Override | ||
public List<String> getColumns() { | ||
return inner.getColumns(); | ||
} | ||
|
||
@Override | ||
public List<String> getColumnArrays() { | ||
return inner.getColumnArrays(); | ||
} | ||
|
||
@Override | ||
public @NotNull ColumnSource<?> getDataView() { | ||
return inner.getDataView(); | ||
} | ||
|
||
@Override | ||
public @NotNull ColumnSource<?> getLazyView() { | ||
return inner.getLazyView(); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return inner.getName(); | ||
} | ||
|
||
@Override | ||
public MatchPair getMatchPair() { | ||
return inner.getMatchPair(); | ||
} | ||
|
||
@Override | ||
public WritableColumnSource<?> newDestInstance(long size) { | ||
return inner.newDestInstance(size); | ||
} | ||
|
||
@Override | ||
public WritableColumnSource<?> newFlatDestInstance(long size) { | ||
return inner.newFlatDestInstance(size); | ||
} | ||
|
||
@Override | ||
public boolean isRetain() { | ||
return inner.isRetain(); | ||
} | ||
|
||
@Override | ||
public SelectColumn copy() { | ||
return new StatefulSelectColumn(inner.copy()); | ||
} | ||
|
||
@Override | ||
public boolean isStateless() { | ||
return false; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
table-api/src/main/java/io/deephaven/api/StatefulSelectable.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,33 @@ | ||
/** | ||
* Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending | ||
*/ | ||
package io.deephaven.api; | ||
|
||
import io.deephaven.api.expression.Expression; | ||
|
||
public class StatefulSelectable implements Selectable { | ||
private final Selectable inner; | ||
|
||
public StatefulSelectable(final Selectable inner) { | ||
this.inner = inner; | ||
} | ||
|
||
public Selectable innerSelectable() { | ||
return inner; | ||
} | ||
|
||
@Override | ||
public ColumnName newColumn() { | ||
return inner.newColumn(); | ||
} | ||
|
||
@Override | ||
public Expression expression() { | ||
return inner.expression(); | ||
} | ||
|
||
@Override | ||
public boolean isStateless() { | ||
return false; | ||
} | ||
} |