Package com.alimama.mdrill.partion

Source Code of com.alimama.mdrill.partion.MdrillPartions

package com.alimama.mdrill.partion;

import com.alimama.mdrill.partion.dirtory.DirtoryPartions;
import com.alimama.mdrill.partion.single.SinglePartions;
import com.alimama.mdrill.partion.thedate.ThedatePartions;

public class MdrillPartions {
  public static String PARTION_VERSION="20140628";
  public static MdrillPartionsInterface INSTANCE(String parttype)
  {
    MdrillPartionsInterface rtn=null;
    if(parttype.startsWith("single"))
    {
      rtn= new SinglePartions();

    }else if(parttype.startsWith("dir")){
      rtn= new DirtoryPartions();
    }else{
      rtn= new ThedatePartions();
    }
    rtn.setPartionType(parttype);
    return rtn;
  }
}
TOP

Related Classes of com.alimama.mdrill.partion.MdrillPartions

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.