[ https://issues.apache.org/jira/browse/CARBONDATA-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15454973#comment-15454973 ] ASF GitHub Bot commented on CARBONDATA-200: ------------------------------------------- Github user foryou2030 commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/91#discussion_r77147039 --- Diff: core/src/main/java/org/apache/carbondata/core/carbon/querystatistics/SingleQueryStatisticsRecorder.java --- @@ -0,0 +1,193 @@ +/* + * 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.carbon.querystatistics; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; + +import org.apache.carbondata.common.logging.LogService; +import org.apache.carbondata.common.logging.LogServiceFactory; + +/** + * Class will be used to record and log the query statistics + */ +public class SingleQueryStatisticsRecorder implements Serializable { + + private static final LogService LOGGER = + LogServiceFactory.getLogService(SingleQueryStatisticsRecorder.class.getName()); + /** + * serialization version + */ + private static final long serialVersionUID = -1L; + + /** + * singleton QueryStatisticsRecorder for driver + */ + private HashMap<String, List<QueryStatistic>> queryStatisticsMap; --- End diff -- handled > Add performance statistics logs to record the query time taken by carbon > ------------------------------------------------------------------------ > > Key: CARBONDATA-200 > URL: https://issues.apache.org/jira/browse/CARBONDATA-200 > Project: CarbonData > Issue Type: New Feature > Reporter: Gin-zhj > Assignee: Gin-zhj > Priority: Minor > > Add performance statistics logs to record the query time taken by carbon, > show the query statistics like a table, so users can easily analyzing the query performance. -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |