MCPcopy Create free account
hub / github.com/apache/pig / isAtomic

Method isAtomic

src/org/apache/pig/data/DataType.java:403–417  ·  view source on GitHub ↗

Determine whether the this data type is atomic. @param dataType Data type code to test. @return true if dataType is bytearray, bigchararray, chararray, integer, long, float, or boolean.

(byte dataType)

Source from the content-addressed store, hash-verified

401 * float, or boolean.
402 */
403 public static boolean isAtomic(byte dataType) {
404 return ((dataType == BYTEARRAY) ||
405 (dataType == CHARARRAY) ||
406 (dataType == BIGCHARARRAY) ||
407 (dataType == INTEGER) ||
408 (dataType == BIGINTEGER) ||
409 (dataType == BIGDECIMAL) ||
410 (dataType == LONG) ||
411 (dataType == FLOAT) ||
412 (dataType == DOUBLE) ||
413 (dataType == BOOLEAN) ||
414 (dataType == BYTE) ||
415 (dataType == DATETIME) ||
416 (dataType == GENERIC_WRITABLECOMPARABLE));
417 }
418
419 /**
420 * Determine whether the this data type is atomic.

Callers 4

getDescriptionMethod · 0.95
visitMethod · 0.95
stringifySchemaMethod · 0.95

Calls 1

findTypeMethod · 0.95

Tested by

no test coverage detected