Rows implements ArrayAccess, Countable, IteratorAggregate
FinalYes
Tags
Interfaces
- ArrayAccess
- Countable
- IteratorAggregate
Methods
- __construct() : mixed
- add() : self
- all() : array<string|int, Row>
- chunks() : Generator<string|int, Rows>
- count() : int
- diffLeft() : self
- diffRight() : self
- drop() : self
- dropPartitions() : self
- dropRight() : self
- each() : void
- empty() : bool
- entries() : array<string|int, Entries>
- filter() : self
- find() : self
- findOne() : Row|null
- first() : Row
- flatMap() : self
- fromArray() : self
- getIterator() : Iterator<int, Row>
- hash() : string
- isPartitioned() : bool
- joinCross() : self
- joinInner() : self
- joinLeft() : self
- joinLeftAnti() : self
- joinRight() : self
- map() : self
- merge() : self
- offsetExists() : bool
- offsetGet() : Row
- offsetSet() : void
- offsetUnset() : void
- partitionBy() : array<string|int, Rows>
- partitioned() : self
- partitions() : Partitions
- reduce() : null|mixed
- reduceToArray() : array<string|int, mixed>
- remove() : self
- reverse() : self
- schema() : Schema
- sort() : self
- sortAscending() : self
- sortBy() : self
- sortDescending() : self
- sortEntries() : self
- take() : self
- takeRight() : self
- toArray() : array<int, array<string|int, mixed>>
- unique() : self
Methods
__construct()
public
__construct(Row ...$rows) : mixed
Parameters
- $rows : Row
add()
public
add(Row ...$rows) : self
Parameters
- $rows : Row
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
selfdropPartitions()
public
dropPartitions([bool $dropPartitionColumns = false ]) : self
Parameters
- $dropPartitionColumns : bool = false
Return values
selfdropRight()
public
dropRight(int $size) : self
Parameters
- $size : int
Return values
selfeach()
public
each(callable(Row): void $callable) : void
Parameters
- $callable : callable(Row): void
empty()
public
empty() : bool
Return values
boolentries()
public
entries() : array<string|int, Entries>
Return values
array<string|int, Entries>filter()
public
filter(callable(Row): bool $callable) : self
Parameters
- $callable : callable(Row): bool
Return values
selffind()
public
find(callable $callable) : self
Parameters
- $callable : callable
Return values
selffindOne()
public
findOne(callable $callable) : Row|null
Parameters
- $callable : callable
Return values
Row|nullfirst()
public
first() : Row
Return values
RowflatMap()
public
flatMap(callable(Row): array<string|int, Row> $callable) : self
Parameters
Return values
selffromArray()
public
static fromArray(array<string|int, mixed> $data[, EntryFactory $entryFactory = new EntryFactory() ]) : self
Parameters
- $data : array<string|int, mixed>
- $entryFactory : EntryFactory = new EntryFactory()
Return values
selfgetIterator()
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
stringisPartitioned()
public
isPartitioned() : bool
Return values
booljoinCross()
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
selfmap()
public
map(callable(Row): Row $callable) : self
Parameters
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
partitionBy()
public
partitionBy(Reference|string $reference, Reference|string ...$references) : array<string|int, Rows>
Parameters
Tags
Return values
array<string|int, Rows>partitioned()
public
static partitioned(array<int, Row>|array<string|int, Row> $rows, array<string|int, mixed>|Partitions $partitions) : self
Parameters
Return values
selfpartitions()
public
partitions() : Partitions
Return values
Partitionsreduce()
public
reduce(callable(mixed, Row): mixed $callable[, null|mixed $input = null ]) : null|mixed
Parameters
- $callable : callable(mixed, Row): mixed
- $input : null|mixed = null
Return values
null|mixedreduceToArray()
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
Schemasort()
public
sort(callable(mixed, mixed): int $callback) : self
Parameters
- $callback : callable(mixed, mixed): int
Return values
selfsortAscending()
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
selfsortEntries()
public
sortEntries() : self
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()