From dev-return-50230-archive-asf-public=cust-asf.ponee.io@drill.apache.org Mon Nov 11 16:11:10 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 01497180629 for ; Mon, 11 Nov 2019 17:11:09 +0100 (CET) Received: (qmail 38818 invoked by uid 500); 11 Nov 2019 16:11:02 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 38376 invoked by uid 99); 11 Nov 2019 16:11:00 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Nov 2019 16:11:00 +0000 From: GitBox To: dev@drill.apache.org Subject: [GitHub] [drill] arina-ielchiieva commented on a change in pull request #1886: DRILL-7273: Introduce operators for handling metadata Message-ID: <157348866039.31361.12619352314940588067.gitbox@gitbox.apache.org> Date: Mon, 11 Nov 2019 16:11:00 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit arina-ielchiieva commented on a change in pull request #1886: DRILL-7273: Introduce operators for handling metadata URL: https://github.com/apache/drill/pull/1886#discussion_r344780213 ########## File path: metastore/metastore-api/src/main/java/org/apache/drill/metastore/metadata/MetadataType.java ########## @@ -27,44 +27,54 @@ /** * Metadata type which helps to indicate that there is no overflow of metadata. */ - NONE, + NONE(0), /** * Table level metadata type. */ - TABLE, + TABLE(1), /** * Segment level metadata type. It corresponds to the metadata * within specific directory for FS tables, or may correspond to partition for hive tables. */ - SEGMENT, + SEGMENT(2), /** * Drill partition level metadata type. It corresponds to parts of table data which has the same * values within specific column, i.e. partitions discovered by Drill. */ - PARTITION, + PARTITION(3), /** * File level metadata type. */ - FILE, + FILE(4), /** * Row group level metadata type. Used for parquet tables. */ - ROW_GROUP, + ROW_GROUP(5), /** * Metadata that can be applicable to any type. */ - ALL, + ALL(Integer.MAX_VALUE), /** * Metadata type which belongs to views. */ - VIEW; + VIEW(-1); + + private final int metadataPriority; + + MetadataType(int metadataPriority) { + this.metadataPriority = metadataPriority; + } + + public boolean includes(MetadataType metadataType) { Review comment: Java-doc ---------------------------------------------------------------- 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: users@infra.apache.org With regards, Apache Git Services