分散キャッシュに多数のファイルが保存されており、それぞれがユーザー ID に対応しています。特定のユーザー ID (リデューサーのキーとなる) に対応する特定のファイルを特定のリデュース タスクに添付したいと考えています。しかし、reduce クラスの reduce メソッドの前にある configure メソッドを使用して、分散キャッシュからファイルを読み取るため、そうすることができません。そのため、reduce クラスの configure メソッドで reduce メソッドのキーにアクセスできず、必要なファイルだけを読み取ることができません。助けてください。
class reduce{
void configure(args)
{
/*I can a particular file from the Path[] here.
I want to select the file corresponding to the key of the reduce method and pass its
contents to the reduce method. I am not able to do this as I can't access the key of
the reduce method.*/
}
void reduce(args)
{
}
}