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

Method wrap

java/kudu-client/src/main/java/org/apache/kudu/util/ByteVec.java:82–84  ·  view source on GitHub ↗

Wrap an existing array with a vector. The array should not be modified after this call. @param data the initial data for the vector @return a vector wrapping the data

(byte[] data)

Source from the content-addressed store, hash-verified

80 * @return a vector wrapping the data
81 */
82 public static ByteVec wrap(byte[] data) {
83 return new ByteVec(data);
84 }
85
86 /** Returns the number of elements the vector can hold without reallocating. */
87 public int capacity() {

Callers 15

checkByteVecMethod · 0.95
runServerStepMethod · 0.80
setUpMethod · 0.80
testGettersMethod · 0.80
testGetObjectMethod · 0.80
testAddObjectMethod · 0.80
testToStringMethod · 0.80
addVarLengthDataMethod · 0.80
decodeRangePartitionsMethod · 0.80
decodeBoundMethod · 0.80
getBinaryMethod · 0.80
makeConnectionContextMethod · 0.80

Calls

no outgoing calls

Tested by 8

checkByteVecMethod · 0.76
runServerStepMethod · 0.64
setUpMethod · 0.64
testGettersMethod · 0.64
testGetObjectMethod · 0.64
testAddObjectMethod · 0.64
testToStringMethod · 0.64