MCPcopy Create free account
hub / github.com/cmu-db/benchbase / isIntegerType

Method isIntegerType

src/main/java/com/oltpbenchmark/util/SQLUtil.java:412–424  ·  view source on GitHub ↗

Returns true if the given sqlType identifier is an Integer data type @param sqlType @return @see java.sql.Types

(int sqlType)

Source from the content-addressed store, hash-verified

410 * @see java.sql.Types
411 */
412 public static boolean isIntegerType(int sqlType) {
413 switch (sqlType) {
414 case Types.TINYINT:
415 case Types.SMALLINT:
416 case Types.INTEGER:
417 case Types.BIGINT:
418 {
419 return (true);
420 }
421 default:
422 return (false);
423 }
424 }
425
426 /**
427 * Return the COUNT(*) SQL to calculate the number of records

Callers 1

testIntegerColumnsMethod · 0.95

Calls

no outgoing calls

Tested by 1

testIntegerColumnsMethod · 0.76