Flow PHP

Rows implements ArrayAccess, Countable, IteratorAggregate

FinalYes
Tags
implements
implements

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
self

all()

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
int

diffLeft()

public diffLeft(self $rows) : self
Parameters
$rows : self
Return values
self

diffRight()

public diffRight(self $rows) : self
Parameters
$rows : self
Return values
self

drop()

public drop(int $size) : self
Parameters
$size : int
Return values
self

dropPartitions()

public dropPartitions([bool $dropPartitionColumns = false ]) : self
Parameters
$dropPartitionColumns : bool = false
Return values
self

dropRight()

public dropRight(int $size) : self
Parameters
$size : int
Return values
self

each()

public each(callable(Row): void $callable) : void
Parameters
$callable : callable(Row): void

empty()

public empty() : bool
Return values
bool

entries()

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
self

find()

public find(callable $callable) : self
Parameters
$callable : callable
Return values
self

findOne()

public findOne(callable $callable) : Row|null
Parameters
$callable : callable
Return values
Row|null

flatMap()

public flatMap(callable(Row): array<string|int, Row$callable) : self
Parameters
$callable : callable(Row): array<string|int, Row>
Return values
self

fromArray()

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
self

getIterator()

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
string

isPartitioned()

public isPartitioned() : bool
Return values
bool

joinCross()

public joinCross(self $right[, string $joinPrefix = 'joined_' ]) : self
Parameters
$right : self
$joinPrefix : string = 'joined_'
Return values
self

map()

public map(callable(Row): Row $callable) : self
Parameters
$callable : callable(Row): Row
Return values
self

merge()

public merge(self $rows) : self
Parameters
$rows : self
Return values
self

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed

offsetUnset()

public offsetUnset(int $offset) : void
Parameters
$offset : int
Tags
throws
RuntimeException

partitioned()

public static partitioned(array<int, Row>|array<string|int, Row$rows, array<string|int, mixed>|Partitions $partitions) : self
Parameters
$rows : array<int, Row>|array<string|int, Row>
$partitions : array<string|int, mixed>|Partitions
Return values
self

partitions()

public partitions() : Partitions
Return values
Partitions

reduce()

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|mixed

reduceToArray()

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
self

reverse()

public reverse() : self
Return values
self

sort()

public sort(callable(mixed, mixed): int $callback) : self
Parameters
$callback : callable(mixed, mixed): int
Return values
self

sortEntries()

public sortEntries() : self
Return values
self

take()

public take(int $size) : self
Parameters
$size : int
Return values
self

takeRight()

public takeRight(int $size) : self
Parameters
$size : int
Return values
self

toArray()

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()
Return values
self

        
On this page

Search results