 | AdvancedWordCountReversePairsTKey, TValue Method |
Reverses the key and value of a pair.
Namespace: Ookii.Jumbo.Jet.SamplesAssembly: Ookii.Jumbo.Jet.Samples (in Ookii.Jumbo.Jet.Samples.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntaxpublic static void ReversePairs<TKey, TValue>(
Pair<TKey, TValue> record,
RecordWriter<Pair<TValue, TKey>> output
)
Public Shared Sub ReversePairs(Of TKey, TValue) (
record As Pair(Of TKey, TValue),
output As RecordWriter(Of Pair(Of TValue, TKey))
)
public:
generic<typename TKey, typename TValue>
static void ReversePairs(
Pair<TKey, TValue>^ record,
RecordWriter<Pair<TValue, TKey>^>^ output
)
static member ReversePairs :
record : Pair<'TKey, 'TValue> *
output : RecordWriter<Pair<'TValue, 'TKey>> -> unit
Parameters
- record PairTKey, TValue
- The record.
- output RecordWriterPairTValue, TKey
- The output.
Type Parameters
- TKey
- The type of the key.
- TValue
- The type of the value.
See Also