kangpinghuang commented on a change in pull request #1633: add zone map page(#1390) URL: https://github.com/apache/incubator-doris/pull/1633#discussion_r316962701
########## File path: be/src/olap/rowset/segment_v2/column_zone_map.h ########## @@ -0,0 +1,100 @@ +// 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. + +#pragma once + +#include <vector> +#include <memory> + +#include "common/status.h" +#include "util/slice.h" +#include "olap/field.h" +#include "gen_cpp/segment_v2.pb.h" +#include "olap/rowset/segment_v2/binary_plain_page.h" + +namespace doris { + +namespace segment_v2 { + +struct ZoneMap { + // min value of zone + char* min_value = nullptr; + // max value of zone + char* max_value = nullptr; + + // if both exist_null and exist_none_null is false, means no rows. + // if exist_null is true and exist_none_null is false, means all rows is null. + // if exist_null is false and exist_none_null is true, means all rows is not null. + // if exist_null is true and exist_none_null is true, means some rows is null and others are not. + // exist_null means whether zone has null value + bool exist_null = false; + // exist_none_null means whether zone has none-null value + bool exist_none_null = false; Review comment: ok ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org