private static boolean parseBoolean(Text t) {
    if(t.getLength()>5) {
      return true;
    }
    String strVal=t.toString();
    return parseBoolean(strVal);
  }
Parses a boolean from string

Accepts "false","off","no","0" and "" as FALSE
All other values are interpreted as true.
serde/src/java/org/apache/hadoop/hive/serde2/objectinspector/primitive/PrimitiveObjectInspectorUtils.java