@SuppressWarnings("deprecation") @Override public MapJoinKey putRow(Writable currentKey, Writable currentValue) throws SerDeException, HiveException, IOException { writeHelper.setKeyValue(currentKey, currentValue); return internalPutRow(writeHelper, currentKey, currentValue); }
@Override public void put(Writable currentKey, Writable currentValue) throws SerDeException, IOException { directWriteHelper.setKeyValue(currentKey, currentValue); internalPutRow(directWriteHelper, currentKey, currentValue); }
@Override public void put(Writable currentKey, Writable currentValue) throws SerDeException, IOException { directWriteHelper.setKeyValue(currentKey, currentValue); internalPutRow(directWriteHelper, currentKey, currentValue); }
@SuppressWarnings("deprecation") @Override public MapJoinKey putRow(Writable currentKey, Writable currentValue) throws SerDeException, HiveException, IOException { writeHelper.setKeyValue(currentKey, currentValue); return internalPutRow(writeHelper, currentKey, currentValue); }
@Override public void put(Writable currentKey, Writable currentValue) throws SerDeException, IOException { directWriteHelper.setKeyValue(currentKey, currentValue); internalPutRow(directWriteHelper, currentKey, currentValue); }
@SuppressWarnings("deprecation") @Override public MapJoinKey putRow(MapJoinObjectSerDeContext keyContext, Writable currentKey, MapJoinObjectSerDeContext valueContext, Writable currentValue) throws SerDeException, HiveException, IOException { SerDe keySerde = keyContext.getSerDe(), valSerde = valueContext.getSerDe(); if (writeHelper == null) { LOG.info("Initializing container with " + keySerde.getClass().getName() + " and " + valSerde.getClass().getName()); // We assume this hashtable is loaded only when tez is enabled LazyBinaryStructObjectInspector valSoi = (LazyBinaryStructObjectInspector) valSerde.getObjectInspector(); writeHelper = new MapJoinBytesTableContainer.LazyBinaryKvWriter(keySerde, valSoi, valueContext.hasFilterTag()); if (internalValueOi == null) { internalValueOi = valSoi; } if (sortableSortOrders == null) { sortableSortOrders = ((BinarySortableSerDe) keySerde).getSortOrders(); } } writeHelper.setKeyValue(currentKey, currentValue); return internalPutRow(writeHelper, currentKey, currentValue); }