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

Method put

test/org/apache/pig/builtin/avro/code/java/RecordPojo.java:74–87  ·  view source on GitHub ↗
(int field$, java.lang.Object value$)

Source from the content-addressed store, hash-verified

72 }
73 // Used by DatumReader. Applications should not call.
74 @SuppressWarnings(value="unchecked")
75 public void put(int field$, java.lang.Object value$) {
76 switch (field$) {
77 case 0: key = (java.lang.CharSequence)value$; break;
78 case 1: intValue = (java.lang.Integer)value$; break;
79 case 2: longValue = (java.lang.Long)value$; break;
80 case 3: booleanValue = (java.lang.Boolean)value$; break;
81 case 4: floatValue = (java.lang.Float)value$; break;
82 case 5: doubleValue = (java.lang.Double)value$; break;
83 case 6: bytesValue = (java.nio.ByteBuffer)value$; break;
84 case 7: nullValue = (java.lang.Void)value$; break;
85 default: throw new org.apache.avro.AvroRuntimeException("Bad index");
86 }
87 }
88
89 /**
90 * Gets the value of the 'key' field.

Callers 15

execMethod · 0.45
setLocationMethod · 0.45
PigTestMethod · 0.45
overrideMethod · 0.45
getAliasToSchemaMapMethod · 0.45
saveLastStoreAliasMethod · 0.45
loadTestDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected