public static function setUpBeforeClass() { parent::setUpBeforeClass(); $sys = new SystemManager(); $cfattrs = array("comparator_type" => DataType::FLOAT_TYPE); $sys->create_column_family(self::$KS, 'StdFloat', $cfattrs); $cfattrs = array("comparator_type" => DataType::DOUBLE_TYPE); $sys->create_column_family(self::$KS, 'StdDouble', $cfattrs); $cfattrs = array("comparator_type" => DataType::TIME_UUID_TYPE); $sys->create_column_family(self::$KS, 'StdTimeUUID', $cfattrs); $cfattrs = array("comparator_type" => DataType::LEXICAL_UUID_TYPE); $sys->create_column_family(self::$KS, 'StdLexicalUUID', $cfattrs); $cfattrs = array("comparator_type" => DataType::DATE_TYPE); $sys->create_column_family(self::$KS, 'StdDate', $cfattrs); $cfattrs = array("comparator_type" => 'CompositeType(Int32Type, AsciiType)'); $sys->create_column_family(self::$KS, 'StdComposite', $cfattrs); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); $sys = new SystemManager(); if (self::$have64Bit) { $cfattrs = array("comparator_type" => DataType::LONG_TYPE); $sys->create_column_family(self::$KS, 'StdLong', $cfattrs); } $cfattrs = array("comparator_type" => DataType::INTEGER_TYPE); $sys->create_column_family(self::$KS, 'StdInteger', $cfattrs); $cfattrs = array("comparator_type" => DataType::INT32_TYPE); $sys->create_column_family(self::$KS, 'StdInt32', $cfattrs); $cfattrs = array("comparator_type" => DataType::ASCII_TYPE); $sys->create_column_family(self::$KS, 'StdAscii', $cfattrs); $cfattrs = array("comparator_type" => DataType::UTF8_TYPE); $sys->create_column_family(self::$KS, 'StdUTF8', $cfattrs); }