com.bigdata.sparse
Class NameChecker
java.lang.Object
com.bigdata.sparse.NameChecker
public class NameChecker
- extends Object
Utility class validates column and schema name constraints.
- Version:
- $Id: NameChecker.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern_name
public static final Pattern pattern_name
- The constraint on schema and column names.
NameChecker
public NameChecker()
assertSchemaName
public static void assertSchemaName(String s)
throws IllegalArgumentException
- Assert that the string is valid as the name of a schema. Names must be
alphanumeric and may also include any of {
.,
_, or /}.
- Parameters:
s - The string.
- Throws:
IllegalArgumentException - if the string is not valid as the name of a schema.
assertColumnName
public static void assertColumnName(String s)
throws IllegalArgumentException
- Assert that the string is valid as the name of a column. Names must be
alphanumeric and may also include any of {
.,
_, or /}.
- Parameters:
s - The string.
- Throws:
IllegalArgumentException - if the string is not valid as the name of a column.
Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.