PHP 클래스 CassandraCF, phpcassa

파일 보기 프로젝트 열기: hoan/phpcassa 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$column_family
$column_type
$is_super
$keyspace
$parse_columns CompareSubcolumnsWith (TODO: actually use this)
$read_consistency_level
$subcolumn_type CompareWith (TODO: actually use this)
$write_consistency_level

공개 메소드들

메소드 설명
__construct ( $keyspace, $column_family, $is_super = false, $column_type = self::DEFAULT_COLUMN_TYPE, $subcolumn_type = self::DEFAULT_SUBCOLUMN_TYPE, $read_consistency_level = cassandra_ConsistencyLevel::ONE, $write_consistency_level = cassandra_ConsistencyLevel::ZERO ) * BytesType: Simple sort by byte value. No validation is performed.
array_to_columns ( $array, $timestamp = null )
array_to_mutation ( $array, $timestamp = null ) Helpers for turning PHP arrays into Cassandra's thrift objects
array_to_supercolumns_or_columns ( $array, $timestamp = null )
columns_to_array ( $array_of_c )
get ( $key, $super_column = NULL, $slice_start = "", $slice_finish = "", $column_reversed = False, $column_count = self::DEFAULT_COLUMN_LIMIT )
get_count ( $key, $super_column = null )
get_list ( $key, $key_name = 'key', $slice_start = "", $slice_finish = "" ) Wrappers
get_range ( $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )
get_range_iterator ( $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )
get_range_list ( $key_name = 'key', $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )
insert ( $key, $columns = null )
keyslices_to_array ( $keyslices ) Helpers for parsing Cassandra's thrift objects into PHP arrays
multiget ( $keys, $slice_start = "", $slice_finish = "" )
multiget_list ( $keys, $key_name = 'key', $slice_start = "", $slice_finish = "" )
pack_longtype ( $x ) See http://webcache.googleusercontent.com/search?q=cache:9jjbeSy434UJ:wiki.apache.org/cassandra/FAQ+cassandra+php+%22A+long+is+exactly+8+bytes%22&cd=1&hl=en&ct=clnk&gl=us
parse_column_name ( $column_name, $is_column = true ) ARGH
remove ( $key, $column_name = null )
supercolumns_or_columns_to_array ( $array_of_c_or_sc, $parse_as_columns = true )
to_column_value ( $thing )
unpack_longtype ( $x )
unparse_column_name ( $column_name, $is_column = true )

메소드 상세

__construct() 공개 메소드

AsciiType: Like BytesType, but validates that the input can be parsed as US-ASCII. UTF8Type: A string encoded as UTF8 LongType: A 64bit long LexicalUUIDType: A 128bit UUID, compared lexically (by byte value) TimeUUIDType: a 128bit version 1 UUID, compared by timestamp
public __construct ( $keyspace, $column_family, $is_super = false, $column_type = self::DEFAULT_COLUMN_TYPE, $subcolumn_type = self::DEFAULT_SUBCOLUMN_TYPE, $read_consistency_level = cassandra_ConsistencyLevel::ONE, $write_consistency_level = cassandra_ConsistencyLevel::ZERO )

array_to_columns() 공개 메소드

public array_to_columns ( $array, $timestamp = null )

array_to_mutation() 공개 메소드

Helpers for turning PHP arrays into Cassandra's thrift objects
public array_to_mutation ( $array, $timestamp = null )

array_to_supercolumns_or_columns() 공개 메소드

public array_to_supercolumns_or_columns ( $array, $timestamp = null )

columns_to_array() 공개 메소드

public columns_to_array ( $array_of_c )

get() 공개 메소드

public get ( $key, $super_column = NULL, $slice_start = "", $slice_finish = "", $column_reversed = False, $column_count = self::DEFAULT_COLUMN_LIMIT )

get_count() 공개 메소드

public get_count ( $key, $super_column = null )

get_list() 공개 메소드

Wrappers
public get_list ( $key, $key_name = 'key', $slice_start = "", $slice_finish = "" )

get_range() 공개 메소드

public get_range ( $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )

get_range_iterator() 공개 메소드

public get_range_iterator ( $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )

get_range_list() 공개 메소드

public get_range_list ( $key_name = 'key', $start_key = "", $end_key = "", $row_count = self::DEFAULT_ROW_LIMIT, $slice_start = "", $slice_finish = "" )

insert() 공개 메소드

public insert ( $key, $columns = null )

keyslices_to_array() 공개 메소드

Helpers for parsing Cassandra's thrift objects into PHP arrays
public keyslices_to_array ( $keyslices )

multiget() 공개 메소드

public multiget ( $keys, $slice_start = "", $slice_finish = "" )

multiget_list() 공개 메소드

public multiget_list ( $keys, $key_name = 'key', $slice_start = "", $slice_finish = "" )

pack_longtype() 공개 메소드

See http://webcache.googleusercontent.com/search?q=cache:9jjbeSy434UJ:wiki.apache.org/cassandra/FAQ+cassandra+php+%22A+long+is+exactly+8+bytes%22&cd=1&hl=en&ct=clnk&gl=us
public pack_longtype ( $x )

parse_column_name() 공개 메소드

ARGH
public parse_column_name ( $column_name, $is_column = true )

remove() 공개 메소드

public remove ( $key, $column_name = null )

supercolumns_or_columns_to_array() 공개 메소드

public supercolumns_or_columns_to_array ( $array_of_c_or_sc, $parse_as_columns = true )

to_column_value() 공개 메소드

public to_column_value ( $thing )

unpack_longtype() 공개 메소드

public unpack_longtype ( $x )

unparse_column_name() 공개 메소드

public unparse_column_name ( $column_name, $is_column = true )

프로퍼티 상세

$column_family 공개적으로 프로퍼티

public $column_family

$column_type 공개적으로 프로퍼티

public $column_type

$is_super 공개적으로 프로퍼티

public $is_super

$keyspace 공개적으로 프로퍼티

public $keyspace

$parse_columns 공개적으로 프로퍼티

CompareSubcolumnsWith (TODO: actually use this)
public $parse_columns

$read_consistency_level 공개적으로 프로퍼티

public $read_consistency_level

$subcolumn_type 공개적으로 프로퍼티

CompareWith (TODO: actually use this)
public $subcolumn_type

$write_consistency_level 공개적으로 프로퍼티

public $write_consistency_level