Beispiel #1
0
 public virtual void SetConf(Configuration conf)
 {
     try
     {
         FileSystem fs = FileSystem.GetLocal(conf);
         this.conf = conf;
         Path partFile = new Path(TeraInputFormat.PartitionFilename);
         splitPoints = ReadPartitions(fs, partFile, conf);
         trie        = BuildTrie(splitPoints, 0, splitPoints.Length, new Text(), 2);
     }
     catch (IOException ie)
     {
         throw new ArgumentException("can't read partitions file", ie);
     }
 }
Beispiel #2
0
 internal virtual void SetChild(int idx, TeraSort.TotalOrderPartitioner.TrieNode child
                                )
 {
     this.child[idx] = child;
 }