com.bigdata.sparse
Class NameChecker

java.lang.Object
  extended by 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

Field Summary
static Pattern pattern_name
          The constraint on schema and column names.
 
Constructor Summary
NameChecker()
           
 
Method Summary
static void assertColumnName(String s)
          Assert that the string is valid as the name of a column.
static void assertSchemaName(String s)
          Assert that the string is valid as the name of a schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern_name

public static final Pattern pattern_name
The constraint on schema and column names.

Constructor Detail

NameChecker

public NameChecker()
Method Detail

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.