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

Method bytesToBag

src/org/apache/pig/LoadCaster.java:125–125  ·  view source on GitHub ↗

Cast data from bytearray to bag value. @param b bytearray to be cast. @param fieldSchema field schema for the output bag @return Bag value. @throws IOException if the value cannot be cast.

(byte[] b, ResourceFieldSchema fieldSchema)

Source from the content-addressed store, hash-verified

123 * @throws IOException if the value cannot be cast.
124 */
125 public DataBag bytesToBag(byte[] b, ResourceFieldSchema fieldSchema) throws IOException;
126
127 /**
128 * Cast data from bytearray to BigInteger value.

Callers 10

testBagMethod · 0.65
testEmptyBagMethod · 0.65
testStoreComplexDataMethod · 0.65
testBytesToBagMethod · 0.65
convertWithSchemaMethod · 0.65
getNextDataBagMethod · 0.65
convertToTypeMethod · 0.65

Implementers 7

TestLoadertest/org/apache/pig/test/TestPOCast.ja
Castertest/perf/pigmix/src/java/org/apache/p
TextLoadersrc/org/apache/pig/builtin/TextLoader.
UnImplementedLoadCastersrc/org/apache/pig/builtin/BinStorage.
AccumuloBinaryConvertersrc/org/apache/pig/backend/hadoop/accu
HBaseBinaryConvertersrc/org/apache/pig/backend/hadoop/hbas
Utf8StorageConvertersrc/org/apache/pig/builtin/Utf8Storage

Calls

no outgoing calls

Tested by 7

testBagMethod · 0.52
testEmptyBagMethod · 0.52
testStoreComplexDataMethod · 0.52
testBytesToBagMethod · 0.52