MCPcopy Create free account
hub / github.com/apache/kudu / fromInt

Method fromInt

java/kudu-client/src/main/java/org/apache/kudu/client/Bytes.java:443–447  ·  view source on GitHub ↗

Creates a new byte array containing a little-endian 4-byte integer. @param n An integer. @return A new byte array containing the given value.

(final int n)

Source from the content-addressed store, hash-verified

441 * @return A new byte array containing the given value.
442 */
443 public static byte[] fromInt(final int n) {
444 final byte[] b = new byte[4];
445 setInt(b, n);
446 return b;
447 }
448
449 /**
450 * Creates a new byte array containing a little-endian 4-byte unsigned integer.

Callers 9

testPrimaryKeysMethod · 0.95
intRangeMethod · 0.95
fromBigDecimalMethod · 0.95
objectToWireFormatMethod · 0.95
newInListPredicateMethod · 0.95
setLowerBoundMethod · 0.95
setUpperBoundMethod · 0.95

Calls 1

setIntMethod · 0.95

Tested by 2

testPrimaryKeysMethod · 0.76
intRangeMethod · 0.76