public class StringUtil
extends java.lang.Object
| Constructor and Description |
|---|
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
codePointCount(java.lang.String str)
Returns the number of Unicode code points in the passed string.
|
static java.lang.String |
codePointSubString(java.lang.String str,
int startIndex,
int codePointOffset)
Returns the substring of a string in terms of code points and not 'char' values.
|
static java.lang.String |
escapeHiveTableProperties(java.lang.String propertyValue,
char propertyQuoteChar)
This method escapes single/double quotes in a string used as a hive table property value.
|
static boolean |
validateHive0Dot12TableColumnName(java.lang.String name)
Validates a table/column name for Hive version 0.12 or earlier.
|
public static int codePointCount(java.lang.String str)
str - public static java.lang.String codePointSubString(java.lang.String str,
int startIndex,
int codePointOffset)
str - - The original stringstartIndex - - The starting indexcodePointOffset - - The offset in code pointspublic static java.lang.String escapeHiveTableProperties(java.lang.String propertyValue,
char propertyQuoteChar)
propertyValue - propertyQuoteChar - public static boolean validateHive0Dot12TableColumnName(java.lang.String name)
name - true if the name is valid, false otherwiseCopyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.