final K key = this.<K>getKeyedStateBackend().getCurrentKey();
@Override public void processElement( StreamRecord<WindowedValue<ValueWithRecordId<T>>> streamRecord) throws Exception { ByteBuffer currentKey = keyedStateBackend.getCurrentKey(); int groupIndex = keyedStateBackend.getCurrentKeyGroupIndex(); if (shouldOutput(groupIndex, currentKey)) { WindowedValue<ValueWithRecordId<T>> value = streamRecord.getValue(); output.collect(streamRecord.replace(value.withValue(value.getValue().getValue()))); } }
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
@Override public K getKey() { ByteBuffer keyBytes = flinkStateBackend.getCurrentKey(); try { return CoderUtils.decodeFromByteArray(keyCoder, keyBytes.array()); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
@Override public K getKey() { ByteBuffer keyBytes = (ByteBuffer) keyedStateBackend.getCurrentKey(); try { byte[] bytes = new byte[keyBytes.remaining()]; keyBytes.get(bytes); keyBytes.position(keyBytes.position() - bytes.length); return CoderUtils.decodeFromByteArray(keyCoder, bytes); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
@Override public K getKey() { ByteBuffer keyBytes = flinkStateBackend.getCurrentKey(); byte[] bytes = new byte[keyBytes.remaining()]; keyBytes.get(bytes); keyBytes.position(keyBytes.position() - bytes.length); try { return CoderUtils.decodeFromByteArray(keyCoder, bytes); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
@Override public K getKey() { ByteBuffer keyBytes = (ByteBuffer) keyedStateBackend.getCurrentKey(); try { byte[] bytes = new byte[keyBytes.remaining()]; keyBytes.get(bytes); keyBytes.position(keyBytes.position() - bytes.length); return CoderUtils.decodeFromByteArray(keyCoder, bytes); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
@Override public K getKey() { ByteBuffer keyBytes = flinkStateBackend.getCurrentKey(); byte[] bytes = new byte[keyBytes.remaining()]; keyBytes.get(bytes); keyBytes.position(keyBytes.position() - bytes.length); try { return CoderUtils.decodeFromByteArray(keyCoder, bytes); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
@Override public K getKey() { ByteBuffer keyBytes = (ByteBuffer) keyedStateBackend.getCurrentKey(); try { return CoderUtils.decodeFromByteArray(keyCoder, keyBytes.array()); } catch (CoderException e) { throw new RuntimeException("Error decoding key.", e); } }
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
final K key = this.<K>getKeyedStateBackend().getCurrentKey();
final K key = this.<K>getKeyedStateBackend().getCurrentKey();