zoukankan      html  css  js  c++  java
  • hive表命名规范 源码规则

    tablename 进来前已经把"`","."等过滤掉了,所以就是单词字符喽 w搞定 w包含_ 哈哈

    规范就是 a-z A-Z 0-9 _ 也就是传说中的单词字符w

    /**
       * validateName
       *
       * Checks the name conforms to our standars which are: "[a-zA-z_0-9]+". checks
       * this is just characters and numbers and _
       *
       * @param name
       *          the name to validate
       * @return true or false depending on conformance
       * @exception MetaException
       *              if it doesn't match the pattern.
       */
      static public boolean validateName(String name) {
        Pattern tpat = Pattern.compile("[\w_]+");
        Matcher m = tpat.matcher(name);
        if (m.matches()) {
          return true;
        }
        return false;
      }
    
  • 相关阅读:
    template(2.2)
    Filter过滤链条
    The 3n + 1 problem
    Struts2.3+Spring4.0
    康托展开
    templates(2.1)
    templates(1.2)
    templates(1.1)
    我和你
    Android 的上下文菜单: Context Menu
  • 原文地址:https://www.cnblogs.com/jiangxiaoxian/p/9408954.html
Copyright © 2011-2022 走看看