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

Method bytesToMap

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

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

(byte[] b, ResourceFieldSchema fieldSchema)

Source from the content-addressed store, hash-verified

105 * @throws IOException if the value cannot be cast.
106 */
107 public Map<String, Object> bytesToMap(byte[] b, ResourceFieldSchema fieldSchema) throws IOException;
108
109 /**
110 * Cast data from bytearray to tuple value.

Callers 12

testMapLongValueTypeMethod · 0.65
testMapFloatValueTypeMethod · 0.65
testStoreComplexDataMethod · 0.65
testBytesToMapMethod · 0.65
convertWithSchemaMethod · 0.65
getNextMapMethod · 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 9

testMapLongValueTypeMethod · 0.52
testMapFloatValueTypeMethod · 0.52
testStoreComplexDataMethod · 0.52
testBytesToMapMethod · 0.52