-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Logical Table] Support logical tables in MSE. #15773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e1da21e
c740437
44b2395
9a6f20a
fef23eb
7996bad
415038a
7c858d4
6d18007
5ff3c3e
29d510b
58bf64d
fe93169
16a6606
96f1c3d
d80ecda
fe4009b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -201,4 +201,10 @@ void reloadSegments(String tableNameWithType, List<String> segmentNames, boolean | |
| * Returns the instance data directory | ||
| */ | ||
| String getInstanceDataDir(); | ||
|
|
||
| /** | ||
| * Returns the logical table config and schema for the given logical table name. | ||
| */ | ||
| @Nullable | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider directly throw exception when some config is not available.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added a TODO. re: exception, an exception is thrown using This is similar to all the other gets from |
||
| LogicalTableContext getLogicalTableContext(String logicalTableName); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /** | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, | ||
| * software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| * KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations | ||
| * under the License. | ||
| */ | ||
| package org.apache.pinot.core.data.manager; | ||
|
|
||
| import org.apache.pinot.spi.config.table.TableConfig; | ||
| import org.apache.pinot.spi.data.LogicalTableConfig; | ||
| import org.apache.pinot.spi.data.Schema; | ||
|
|
||
|
|
||
| public class LogicalTableContext { | ||
| private final LogicalTableConfig _logicalTableConfig; | ||
| private final Schema _logicalTableSchema; | ||
| private final TableConfig _refOfflineTableConfig; | ||
| private final TableConfig _refRealtimeTableConfig; | ||
|
|
||
| public LogicalTableContext(LogicalTableConfig logicalTableConfig, Schema logicalTableSchema, | ||
| TableConfig refOfflineTableConfig, TableConfig refRealtimeTableConfig) { | ||
| _logicalTableConfig = logicalTableConfig; | ||
| _logicalTableSchema = logicalTableSchema; | ||
| _refOfflineTableConfig = refOfflineTableConfig; | ||
| _refRealtimeTableConfig = refRealtimeTableConfig; | ||
| } | ||
|
|
||
| public LogicalTableConfig getLogicalTableConfig() { | ||
| return _logicalTableConfig; | ||
| } | ||
|
|
||
| public Schema getLogicalTableSchema() { | ||
| return _logicalTableSchema; | ||
| } | ||
|
|
||
| public TableConfig getRefOfflineTableConfig() { | ||
| return _refOfflineTableConfig; | ||
| } | ||
|
|
||
| public TableConfig getRefRealtimeTableConfig() { | ||
| return _refRealtimeTableConfig; | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.