Java SDK Documentation  12.0.0
com.vertica.sdk.IdentComparator Class Reference
Inheritance diagram for com.vertica.sdk.IdentComparator:
Inheritance graph
Collaboration diagram for com.vertica.sdk.IdentComparator:
Collaboration graph

Public Member Functions

int compare (String a, String b)
 

Static Public Member Functions

static IdentComparator getInstance ()
 

Detailed Description

Compares two SQL Identifiers; for example, column names. SQL Identifiers are case and locale insensitive.

Warning: The current implementation handles ASCII identifiers only; For performance reasons, input values are not checked for non-ASCII characters. Future implementations will provide support for all non-ASCII identifiers. Using this comparator now will ensure ease of upgrade in the future.

Member Function Documentation

static IdentComparator com.vertica.sdk.IdentComparator.getInstance ( )
static

Retrieve a singleton instance of IdentComparator. IdentComparator is stateless and threadsafe.

Returns
Instance of IdentComparator