package com.utils;

/**
 * @Author Qiao Jin
 */
public class Constants {
    public final static int SUM_TYPE = 1;
    public final static int ERR_TYPE = -1;

    // Operator names.
    public final static String SUM = "sum";
    public final static String COUNT = "count";

    // Local master endpoint.
    public final static String LOCALHOST = "local";
    public final static String LOCAL_HDFS_DOMAIN = "hdfs://localhost:9000";
}

@@ -24,53 +24,115 @@
 %0A * 
-@Author Qiao Jin%0A */%0Apublic class Constants %7B
+Created by zhangweimin on 17/5/15.%0A */%0Apublic class Constants %7B%0A%0A    public final static int ERR_TYPE = -1;
 %0A   
@@ -194,35 +194,78 @@
  static int 
-ERR
+MIN_TYPE = 10;%0A    public final static int MAX
 _TYPE = 
 -1;%0A%0A    // 
@@ -256,17 +256,17 @@
 E = 
--
+1
 1;%0A%0A    
 // O
@@ -265,26 +265,115 @@
     
-// Operator names.
+public final static double ERROR_QUANTILE = -1.0;%0A    public final static double ERROR_MAXMIN_PREV = -1.0;%0A
 %0A   
@@ -403,16 +403,20 @@
 ring SUM
+_TAG
  = %22sum%22
@@ -416,16 +416,38 @@
 = %22sum%22;
+%0A%0A    // SQL key words
 %0A    pub
@@ -474,182 +474,816 @@
 ing 
-COUNT = %22count%22;%0A%0A    // Local master endpoint.%0A    public final static String LOCALHOST = %22local%22;%0A    public final static String LOCAL_HDFS_DOMAIN = %22hdfs://localhost:9000%22
+SELECT = %22select%22;%0A    public final static String FROM = %22from%22;%0A    public final static String WHERE = %22where%22;%0A    public final static String MAX = %22max%22;%0A    public final static String MIN = %22min%22;%0A%0A    public final static String COL_PREFIX = %22R%22;%0A    public final static String SAMPLE = %22sample%22;%0A%0A    public final static String MIN_MAX_MAP_KEY = %22mmkey%22;%0A    public final static String RIGHT_BRACKETS = %22)%22;%0A%0A    // hdfs%0A    public final static String LOCALHOST = %22local%22;%0A    public final static String LOCAL_HDFS_DOMAIN = %22hdfs://localhost:9000%22;%0A    public final static String hdfsPathPrefix = %22hdfs://localhost:9000%22;%0A%0A    // default value%0A    public final static double DEFAULT_SAMPLE_RATE = 0.4;%0A    public final static int DEFAULT_COL_IDX = 0;%0A    public final static double LEAST_QUANTILE = 0.95
 ;%0A%7D%0A

add constants