-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CARBONDATA-2557] [CARBONDATA-2472] [CARBONDATA-2570] Improve Carbon …
…Reader performance on S3 and fixed datamap clear issue in reader [CARBONDATA-2557] [CARBONDATA-2472] Problem : CarbonReaderBuilder.build() is slower in s3. It takes around 8 seconds to finish build() Solution: S3 is slow in listFiles, open, FileExist, getCarbonFile operations. So, List down all the calls of those API in the reader flow and remove the redundant checks. [CARBONDATA-2570] Problem : Carbon SDK Reader, second time reader instance have an issue in cluster test Solution: Blocklet datamap's of first time reader is not cleared properly in the cluster. Need to change the API to clear the blocklet datamap. so change DataMapStoreManager.getInstance().getDefaultDataMap(queryModel.getTable()).clear(); to DataMapStoreManager.getInstance().clearDataMaps(queryModel.getTable().getAbsoluteTableIdentifie()); This closes #2345
- Loading branch information
1 parent
2f23486
commit 5f68a79
Showing
22 changed files
with
375 additions
and
298 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
52 changes: 52 additions & 0 deletions
52
...in/java/org/apache/carbondata/core/indexstore/TableBlockIndexUniqueIdentifierWrapper.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,52 @@ | ||
/* | ||
* 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.carbondata.core.indexstore; | ||
|
||
import java.io.Serializable; | ||
|
||
import org.apache.carbondata.core.metadata.schema.table.CarbonTable; | ||
|
||
/** | ||
* Class holds reference to TableBlockIndexUniqueIdentifier and carbonTable related info | ||
* This is just a wrapper passed between methods like a context, This object must never be cached. | ||
* | ||
*/ | ||
public class TableBlockIndexUniqueIdentifierWrapper implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
// holds the reference to tableBlockIndexUniqueIdentifier | ||
private TableBlockIndexUniqueIdentifier tableBlockIndexUniqueIdentifier; | ||
|
||
// holds the reference to CarbonTable | ||
private CarbonTable carbonTable; | ||
|
||
public TableBlockIndexUniqueIdentifierWrapper( | ||
TableBlockIndexUniqueIdentifier tableBlockIndexUniqueIdentifier, CarbonTable carbonTable) { | ||
this.tableBlockIndexUniqueIdentifier = tableBlockIndexUniqueIdentifier; | ||
this.carbonTable = carbonTable; | ||
} | ||
|
||
public TableBlockIndexUniqueIdentifier getTableBlockIndexUniqueIdentifier() { | ||
return tableBlockIndexUniqueIdentifier; | ||
} | ||
|
||
public CarbonTable getCarbonTable() { | ||
return carbonTable; | ||
} | ||
} |
Oops, something went wrong.