Rows implements ArrayAccess, Countable, IteratorAggregate
FinalYes
Tags
Interfaces
- ArrayAccess
- Countable
- IteratorAggregate
Methods
- __construct() : mixed
-
__serialize()
: Schema, rows: list
>} - __unserialize() : void
- add() : self
- all() : array<string|int, Row>
- chunks() : Generator<string|int, Rows>
- count() : int
- diffLeft() : self
- diffRight() : self
- drop() : self
- dropRight() : self
- empty() : bool
- first() : Row
- getIterator() : Iterator<int, Row>
- hash() : string
- head() : self
- joinCross() : self
- joinInner() : self
- joinLeft() : self
- joinLeftAnti() : self
- joinRight() : self
- last() : Row|null
- matchTo() : self
- Re-checks the batch against a different Schema and adopts it - the door the constructor opens, for rows already gathered into a batch.
- merge() : self
- offsetExists() : bool
- offsetGet() : Row
- offsetSet() : void
- offsetUnset() : void
- project() : self
- Drops the columns $schema does not declare and adopts it. Widening or retyping the batch is not a projection - that goes through matchTo().
- reduceToArray() : array<string|int, mixed>
- remove() : self
- reverse() : self
- schema() : Schema
- sortAscending() : self
- sortBy() : self
- sortDescending() : self
- tail() : self
- take() : self
- takeRight() : self
- toArray() : array<int, array<string|int, mixed>>
- unique() : self
Methods
__construct()
public
__construct(Schema $schema, Row ...$rows) : mixed
Parameters
Tags
__serialize()
public
__serialize() : Schema, rows: list>}
Return values
Schema, rows: list__unserialize()
public
__unserialize(Schema, rows: list>} $data) : void
Parameters
-
$data
: Schema, rows: list
>}
add()
public
add(Row ...$rows) : self
Parameters
- $rows : Row
Tags
Return values
selfall()
public
all() : array<string|int, Row>
Return values
array<string|int, Row>chunks()
public
chunks(int<1, max> $size) : Generator<string|int, Rows>
Parameters
- $size : int<1, max>
Return values
Generator<string|int, Rows>count()
public
count() : int
Return values
intdiffLeft()
public
diffLeft(self $rows) : self
Parameters
- $rows : self
Return values
selfdiffRight()
public
diffRight(self $rows) : self
Parameters
- $rows : self
Return values
selfdrop()
public
drop(int $size) : self
Parameters
- $size : int
Return values
selfdropRight()
public
dropRight(int $size) : self
Parameters
- $size : int
Return values
selfempty()
public
empty() : bool
Return values
boolfirst()
public
first() : Row
Return values
RowgetIterator()
public
getIterator() : Iterator<int, Row>
Return values
Iterator<int, Row>hash()
public
hash([Algorithm $algorithm = new NativePHPHash() ]) : string
Parameters
- $algorithm : Algorithm = new NativePHPHash()
Return values
stringhead()
public
head(int $count) : self
Parameters
- $count : int
-
- Count of rows to return. Must be >= 0.
Tags
Return values
selfjoinCross()
public
joinCross(self $right[, string $joinPrefix = 'joined_' ]) : self
Parameters
- $right : self
- $joinPrefix : string = 'joined_'
Return values
selfjoinInner()
public
joinInner(self $right, Expression $expression) : self
Parameters
- $right : self
- $expression : Expression
Tags
Return values
selfjoinLeft()
public
joinLeft(self $right, Expression $expression) : self
Parameters
- $right : self
- $expression : Expression
Tags
Return values
selfjoinLeftAnti()
public
joinLeftAnti(self $right, Expression $expression) : self
Parameters
- $right : self
- $expression : Expression
Tags
Return values
selfjoinRight()
public
joinRight(self $right, Expression $expression) : self
Parameters
- $right : self
- $expression : Expression
Tags
Return values
selflast()
public
last() : Row|null
Return values
Row|nullmatchTo()
Re-checks the batch against a different Schema and adopts it - the door the constructor opens, for rows already gathered into a batch.
public
matchTo(Schema $schema) : self
Parameters
- $schema : Schema
Tags
Return values
selfmerge()
public
merge(self $rows) : self
Parameters
- $rows : self
Return values
selfoffsetExists()
public
offsetExists(int $offset) : bool
Parameters
- $offset : int
Tags
Return values
booloffsetGet()
public
offsetGet(int $offset) : Row
Parameters
- $offset : int
Tags
Return values
RowoffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(int $offset) : void
Parameters
- $offset : int
Tags
project()
Drops the columns $schema does not declare and adopts it. Widening or retyping the batch is not a projection - that goes through matchTo().
public
project(Schema $schema) : self
Parameters
- $schema : Schema
Tags
Return values
selfreduceToArray()
public
reduceToArray(string|Reference $reference) : array<string|int, mixed>
Parameters
- $reference : string|Reference
Return values
array<string|int, mixed>remove()
public
remove(int $offset) : self
Parameters
- $offset : int
Return values
selfreverse()
public
reverse() : self
Return values
selfschema()
public
schema() : Schema
Return values
SchemasortAscending()
public
sortAscending(string|Reference $reference) : self
Parameters
- $reference : string|Reference
Tags
Return values
selfsortBy()
public
sortBy(Reference ...$references) : self
Parameters
- $references : Reference
Tags
Return values
selfsortDescending()
public
sortDescending(string|Reference $reference) : self
Parameters
- $reference : string|Reference
Tags
Return values
selftail()
public
tail(int $count) : self
Parameters
- $count : int
-
- Count of rows to return. Must be >= 0.
Tags
Return values
selftake()
public
take(int $size) : self
Parameters
- $size : int
Return values
selftakeRight()
public
takeRight(int $size) : self
Parameters
- $size : int
Return values
selftoArray()
public
toArray([bool $withKeys = true ]) : array<int, array<string|int, mixed>>
Parameters
- $withKeys : bool = true
Return values
array<int, array<string|int, mixed>>unique()
public
unique([Comparator $comparator = new NativeComparator() ]) : self
Parameters
- $comparator : Comparator = new NativeComparator()