10
10
#include " deephaven/dhcore/column/column_source.h"
11
11
#include " deephaven/dhcore/container/row_sequence.h"
12
12
13
- namespace deephaven ::dhcore::table {
13
+ namespace deephaven ::dhcore::clienttable {
14
14
/* *
15
15
* Declaration provided in deephaven/dhcore/schema/schema.h
16
16
*/
17
17
class Schema ;
18
18
/* *
19
19
* Forward declaration (provided below).
20
20
*/
21
- class Table ;
21
+ class ClientTable ;
22
22
23
23
namespace internal {
24
24
class TableStreamAdaptor {
25
25
typedef deephaven::dhcore::container::RowSequence RowSequence;
26
26
public:
27
- TableStreamAdaptor (const Table &table,
27
+ TableStreamAdaptor (const ClientTable &table,
28
28
std::vector<std::shared_ptr<RowSequence>> rowSequences, bool wantHeaders, bool wantRowNumbers,
29
29
bool highlightCells) : table_(table), rowSequences_(std::move(rowSequences)),
30
30
wantHeaders_ (wantHeaders), wantRowNumbers_(wantRowNumbers), highlightCells_(highlightCells) {}
@@ -33,7 +33,7 @@ class TableStreamAdaptor {
33
33
~TableStreamAdaptor () = default ;
34
34
35
35
private:
36
- const Table &table_;
36
+ const ClientTable &table_;
37
37
std::vector<std::shared_ptr<RowSequence>> rowSequences_;
38
38
bool wantHeaders_ = false ;
39
39
bool wantRowNumbers_ = false ;
@@ -47,7 +47,7 @@ class TableStreamAdaptor {
47
47
* An abstract base class representing a Deephaven table. This is used for example in
48
48
* TickingUpdate to provide table snapshots to a caller who has subscribed to ticking tables.
49
49
*/
50
- class Table {
50
+ class ClientTable {
51
51
public:
52
52
/* *
53
53
* Alias.
@@ -61,24 +61,24 @@ class Table {
61
61
/* *
62
62
* Constructor.
63
63
*/
64
- Table () = default ;
64
+ ClientTable () = default ;
65
65
/* *
66
66
* Destructor.
67
67
*/
68
- virtual ~Table () = default ;
68
+ virtual ~ClientTable () = default ;
69
69
70
70
/* *
71
71
* Get the RowSequence (in position space) that underlies this Table.
72
72
*/
73
73
virtual std::shared_ptr<RowSequence> getRowSequence () const = 0;
74
74
/* *
75
- * Gets a ColumnSource from the table by index.
75
+ * Gets a ColumnSource from the clienttable by index.
76
76
* @param columnIndex Must be in the half-open interval [0, numColumns).
77
77
*/
78
78
virtual std::shared_ptr<ColumnSource> getColumn (size_t columnIndex) const = 0;
79
79
80
80
/* *
81
- * Gets a ColumnSource from the table by name. 'strict' controls whether the method
81
+ * Gets a ColumnSource from the clienttable by name. 'strict' controls whether the method
82
82
* must succeed.
83
83
* @param name The name of the column.
84
84
* @param strict Whether the method must succeed.
@@ -87,7 +87,7 @@ class Table {
87
87
*/
88
88
std::shared_ptr<ColumnSource> getColumn (std::string_view name, bool strict) const ;
89
89
/* *
90
- * Gets the index of a ColumnSource from the table by name. 'strict' controls whether the method
90
+ * Gets the index of a ColumnSource from the clienttable by name. 'strict' controls whether the method
91
91
* must succeed.
92
92
* @param name The name of the column.
93
93
* @param strict Whether the method must succeed.
@@ -98,33 +98,33 @@ class Table {
98
98
std::optional<size_t > getColumnIndex (std::string_view name, bool strict) const ;
99
99
100
100
/* *
101
- * Number of rows in the table .
101
+ * Number of rows in the clienttable .
102
102
*/
103
103
virtual size_t numRows () const = 0;
104
104
/* *
105
- * Number of columns in the table .
105
+ * Number of columns in the clienttable .
106
106
*/
107
107
virtual size_t numColumns () const = 0;
108
108
/* *
109
- * The table schema.
109
+ * The clienttable schema.
110
110
*/
111
111
virtual std::shared_ptr<Schema> schema () const = 0;
112
112
113
113
/* *
114
- * Creates an 'ostream adaptor' to use when printing the table . Example usage:
114
+ * Creates an 'ostream adaptor' to use when printing the clienttable . Example usage:
115
115
* std::cout << myTable.stream(true, false).
116
116
*/
117
117
internal::TableStreamAdaptor stream (bool wantHeaders, bool wantRowNumbers) const ;
118
118
119
119
/* *
120
- * Creates an 'ostream adaptor' to use when printing the table . Example usage:
120
+ * Creates an 'ostream adaptor' to use when printing the clienttable . Example usage:
121
121
* std::cout << myTable.stream(true, false, rowSeq).
122
122
*/
123
123
internal::TableStreamAdaptor stream (bool wantHeaders, bool wantRowNumbers,
124
124
std::shared_ptr<RowSequence> rowSequence) const ;
125
125
126
126
/* *
127
- * Creates an 'ostream adaptor' to use when printing the table . Example usage:
127
+ * Creates an 'ostream adaptor' to use when printing the clienttable . Example usage:
128
128
* std::cout << myTable.stream(true, false, rowSequences).
129
129
*/
130
130
internal::TableStreamAdaptor stream (bool wantHeaders, bool wantRowNumbers,
@@ -147,4 +147,4 @@ class Table {
147
147
std::string toString (bool wantHeaders, bool wantRowNumbers,
148
148
std::vector<std::shared_ptr<RowSequence>> rowSequences) const ;
149
149
};
150
- } // namespace deephaven::dhcore::table
150
+ } // namespace deephaven::dhcore::clienttable
0 commit comments