org.lexgrid.loader.rrf.partition
Class MrrelFilePartitioner

java.lang.Object
  extended by org.lexgrid.loader.rrf.partition.MrrelFilePartitioner
All Implemented Interfaces:
DataPartitioner<Mrrel>

public class MrrelFilePartitioner
extends java.lang.Object
implements DataPartitioner<Mrrel>

The Class MrrelFilePartitioner.

Author:
Kevin Peterson

Constructor Summary
MrrelFilePartitioner()
           
 
Method Summary
static int getLastNumberOfCui(java.lang.String cui)
          Gets the last number of cui.
 int getPartitionNumberForInputRow(Mrrel item)
          Gets the partition number for input row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MrrelFilePartitioner

public MrrelFilePartitioner()
Method Detail

getPartitionNumberForInputRow

public int getPartitionNumberForInputRow(Mrrel item)
Description copied from interface: DataPartitioner
Gets the partition number for input row.

Specified by:
getPartitionNumberForInputRow in interface DataPartitioner<Mrrel>
Parameters:
item - the item
Returns:
the partition number for input row

getLastNumberOfCui

public static int getLastNumberOfCui(java.lang.String cui)
Gets the last number of cui.

Parameters:
cui - the cui
Returns:
the last number of cui

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.