Java 类org.apache.hadoop.hbase.util.PrettyPrinter.Unit 实例源码

项目:ditb    文件:HColumnDescriptor.java   
public static Unit getUnit(String key) {
  Unit unit;
    /* TTL for now, we can add more as we neeed */
  if (key.equals(HColumnDescriptor.TTL)) {
    unit = Unit.TIME_INTERVAL;
  } else {
    unit = Unit.NONE;
  }
  return unit;
}
项目:pbase    文件:HColumnDescriptor.java   
public static Unit getUnit(String key) {
  Unit unit;
    /* TTL for now, we can add more as we neeed */
  if (key.equals(HColumnDescriptor.TTL)) {
    unit = Unit.TIME_INTERVAL;
  } else {
    unit = Unit.NONE;
  }
  return unit;
}
项目:HIndex    文件:HColumnDescriptor.java   
public static Unit getUnit(String key) {
  Unit unit;
    /* TTL for now, we can add more as we neeed */
  if (key.equals(HColumnDescriptor.TTL)) {
    unit = Unit.TIME_INTERVAL;
  } else {
    unit = Unit.NONE;
  }
  return unit;
}
项目:hbase    文件:ColumnFamilyDescriptorBuilder.java   
public static Unit getUnit(String key) {
  /* TTL for now, we can add more as we need */
  switch (key) {
    case TTL:
      return Unit.TIME_INTERVAL;
    default:
      return Unit.NONE;
  }
}
项目:PyroDB    文件:HColumnDescriptor.java   
public static Unit getUnit(String key) {
  Unit unit;
    /* TTL for now, we can add more as we neeed */
  if (key.equals(HColumnDescriptor.TTL)) {
    unit = Unit.TIME_INTERVAL;
  } else {
    unit = Unit.NONE;
  }
  return unit;
}
项目:hbase    文件:HColumnDescriptor.java   
public static Unit getUnit(String key) {
  return ColumnFamilyDescriptorBuilder.getUnit(key);
}
项目:hbase    文件:ColumnFamilyDescriptorBuilder.java   
/**
 * @param timeToLive Time-to-live of cell contents, in seconds.
 * @return this (for chained invocation)
 * @throws org.apache.hadoop.hbase.exceptions.HBaseException
 */
public ModifyableColumnFamilyDescriptor setTimeToLive(String timeToLive) throws HBaseException {
  return setTimeToLive(Integer.parseInt(PrettyPrinter.valueOf(timeToLive, Unit.TIME_INTERVAL)));
}