PHP 클래스 evseevnn\Cassandra\Protocol\Response\DataStream

파일 보기 프로젝트 열기: evseevnn/php-cassandra-binary 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $binary )
readBigInt ( $isCollectionElement = false ) : int; Read unsigned big int;
readBoolean ( ) : boolean Read boolean.
readByType ( array $type, boolean $isCollectionElement = false ) : mixed
readBytes ( boolean $isCollectionElement = false ) : string Read bytes.
readChar ( ) : integer Read single character.
readDecimal ( boolean $isCollectionElement = false ) : string Read variable length decimal.
readDouble ( boolean $isCollectionElement = false ) : double Read double.
readFloat ( boolean $isCollectionElement = false ) : float Read float.
readInet ( boolean $isCollectionElement = false ) : string Read inet.
readInt ( boolean $isCollectionElement = false ) : integer Read unsigned int.
readList ( $valueType ) : array Read list.
readLongString ( ) : string Read long string.
readMap ( $keyType, $valueType ) : array Read map.
readShort ( ) : integer Read unsigned short.
readString ( ) : string Read string.
readTimestamp ( ) : integer Read timestamp.
readUuid ( boolean $isCollectionElement = false ) : string Read uuid.
readVarint ( boolean $isCollectionElement = false ) : string Read variable length integer.

보호된 메소드들

메소드 설명
read ( integer $length ) : string Read data from stream.

비공개 메소드들

메소드 설명
bchexdec ( string $hex ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $binary )
$binary string

read() 보호된 메소드

Read data from stream.
protected read ( integer $length ) : string
$length integer
리턴 string

readBigInt() 공개 메소드

Read unsigned big int;
public readBigInt ( $isCollectionElement = false ) : int;
리턴 int;

readBoolean() 공개 메소드

Read boolean.
public readBoolean ( ) : boolean
리턴 boolean

readByType() 공개 메소드

public readByType ( array $type, boolean $isCollectionElement = false ) : mixed
$type array
$isCollectionElement boolean for collection element used other alg. a temporary solution
리턴 mixed

readBytes() 공개 메소드

Read bytes.
public readBytes ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
리턴 string

readChar() 공개 메소드

Read single character.
public readChar ( ) : integer
리턴 integer

readDecimal() 공개 메소드

Read variable length decimal.
public readDecimal ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
리턴 string

readDouble() 공개 메소드

Read double.
public readDouble ( boolean $isCollectionElement = false ) : double
$isCollectionElement boolean
리턴 double

readFloat() 공개 메소드

Read float.
public readFloat ( boolean $isCollectionElement = false ) : float
$isCollectionElement boolean
리턴 float

readInet() 공개 메소드

Read inet.
public readInet ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
리턴 string

readInt() 공개 메소드

Read unsigned int.
public readInt ( boolean $isCollectionElement = false ) : integer
$isCollectionElement boolean
리턴 integer

readList() 공개 메소드

Read list.
public readList ( $valueType ) : array
$valueType
리턴 array

readLongString() 공개 메소드

Read long string.
public readLongString ( ) : string
리턴 string

readMap() 공개 메소드

Read map.
public readMap ( $keyType, $valueType ) : array
$keyType
$valueType
리턴 array

readShort() 공개 메소드

Read unsigned short.
public readShort ( ) : integer
리턴 integer

readString() 공개 메소드

Read string.
public readString ( ) : string
리턴 string

readTimestamp() 공개 메소드

Cassandra is using the default java date representation, which is the milliseconds since epoch. Since we cannot use 64 bits integers without extra libraries, we are reading this as two 32 bits numbers and calculate the seconds since epoch.
public readTimestamp ( ) : integer
리턴 integer

readUuid() 공개 메소드

Read uuid.
public readUuid ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
리턴 string

readVarint() 공개 메소드

Read variable length integer.
public readVarint ( boolean $isCollectionElement = false ) : string
$isCollectionElement boolean
리턴 string