KVRequestConverter
Table of Contents
-
getAppendRequest()
: AppendRequest
-
getDecrementRequest()
: DecrementRequest
-
getExistsRequest()
: ExistsRequest
-
getGetAllReplicasRequest()
: GetAllReplicasRequest
-
getGetAndLockRequest()
: GetAndLockRequest
-
getGetAndTouchRequest()
: GetAndTouchRequest
-
getGetRequest()
: GetRequest
-
getIncrementRequest()
: IncrementRequest
-
getInsertRequest()
: InsertRequest
-
getLocation()
: array<string|int, mixed>
-
getLookupInRequest()
: array<string|int, mixed>
-
getMutateInRequest()
: array<string|int, mixed>
-
getMutateInSpec()
: array<string|int, mixed>
-
getPrependRequest()
: PrependRequest
-
getRemoveRequest()
: RemoveRequest
-
getReplaceRequest()
: ReplaceRequest
-
getTouchRequest()
: TouchRequest
-
getUnlockRequest()
: UnlockRequest
-
getUpsertRequest()
: UpsertRequest
-
convertStoreSemantic()
: int
-
getLookupInSpec()
: array<string|int, mixed>
-
orderSubdocSpecs()
: array<string|int, mixed>
getAppendRequest()
public
static getAppendRequest(string $key, string $value, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : AppendRequest
Parameters
-
$key
: string
-
-
$value
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
AppendRequest
—
getDecrementRequest()
public
static getDecrementRequest(string $key, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : DecrementRequest
Parameters
-
$key
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
DecrementRequest
—
getExistsRequest()
public
static getExistsRequest(string $key, array<string|int, mixed> $location) : ExistsRequest
Parameters
-
$key
: string
-
-
$location
: array<string|int, mixed>
-
Return values
ExistsRequest
—
getGetAllReplicasRequest()
public
static getGetAllReplicasRequest(string $key, array<string|int, mixed> $location) : GetAllReplicasRequest
Parameters
-
$key
: string
-
-
$location
: array<string|int, mixed>
-
Return values
GetAllReplicasRequest
—
getGetAndLockRequest()
public
static getGetAndLockRequest(string $key, int $lockTimeSeconds, array<string|int, mixed> $location) : GetAndLockRequest
Parameters
-
$key
: string
-
-
$lockTimeSeconds
: int
-
-
$location
: array<string|int, mixed>
-
Return values
GetAndLockRequest
—
getGetAndTouchRequest()
public
static getGetAndTouchRequest(string $key, mixed $expiry, array<string|int, mixed> $location) : GetAndTouchRequest
Parameters
-
$key
: string
-
-
$expiry
: mixed
-
-
$location
: array<string|int, mixed>
-
Return values
GetAndTouchRequest
—
getGetRequest()
public
static getGetRequest(string $key, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : GetRequest
Parameters
-
$key
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
Return values
GetRequest
—
getIncrementRequest()
public
static getIncrementRequest(string $key, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : IncrementRequest
Parameters
-
$key
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
IncrementRequest
—
getInsertRequest()
public
static getInsertRequest(string $key, mixed $document, array<string|int, mixed> $location[, InsertOptions|null $options = null ]) : InsertRequest
Parameters
-
$key
: string
-
-
$document
: mixed
-
-
$location
: array<string|int, mixed>
-
-
$options
: InsertOptions|null
= null
-
-
throws
-
InvalidArgumentException
Return values
InsertRequest
—
getLocation()
public
static getLocation(string $bucketName, string $scopeName, string $collectionName) : array<string|int, mixed>
Parameters
-
$bucketName
: string
-
-
$scopeName
: string
-
-
$collectionName
: string
-
Return values
array<string|int, mixed>
—
getLookupInRequest()
public
static getLookupInRequest(string $key, array<string|int, mixed> $specs, array<string|int, mixed> $location[, LookupInOptions|null $options = null ]) : array<string|int, mixed>
Parameters
-
$key
: string
-
-
$specs
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
$options
: LookupInOptions|null
= null
-
Return values
array<string|int, mixed>
—
getMutateInRequest()
public
static getMutateInRequest(string $key, array<string|int, mixed> $specs, array<string|int, mixed> $location[, MutateInOptions|null $options = null ]) : array<string|int, mixed>
Parameters
-
$key
: string
-
-
$specs
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
$options
: MutateInOptions|null
= null
-
-
throws
-
InvalidArgumentException
Return values
array<string|int, mixed>
—
getMutateInSpec()
public
static getMutateInSpec(array<string|int, mixed> $exportedSpecs) : array<string|int, mixed>
Parameters
-
$exportedSpecs
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
getPrependRequest()
public
static getPrependRequest(string $key, string $value, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : PrependRequest
Parameters
-
$key
: string
-
-
$value
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
PrependRequest
—
getRemoveRequest()
public
static getRemoveRequest(string $key, array<string|int, mixed> $exportedOptions, array<string|int, mixed> $location) : RemoveRequest
Parameters
-
$key
: string
-
-
$exportedOptions
: array<string|int, mixed>
-
-
$location
: array<string|int, mixed>
-
-
throws
-
InvalidArgumentException
Return values
RemoveRequest
—
getReplaceRequest()
public
static getReplaceRequest(string $key, mixed $document, array<string|int, mixed> $location[, ReplaceOptions|null $options = null ]) : ReplaceRequest
Parameters
-
$key
: string
-
-
$document
: mixed
-
-
$location
: array<string|int, mixed>
-
-
$options
: ReplaceOptions|null
= null
-
-
throws
-
InvalidArgumentException
Return values
ReplaceRequest
—
getTouchRequest()
public
static getTouchRequest(string $key, mixed $expiry, array<string|int, mixed> $location) : TouchRequest
Parameters
-
$key
: string
-
-
$expiry
: mixed
-
-
$location
: array<string|int, mixed>
-
Return values
TouchRequest
—
getUnlockRequest()
public
static getUnlockRequest(string $key, string $cas, array<string|int, mixed> $location) : UnlockRequest
Parameters
-
$key
: string
-
-
$cas
: string
-
-
$location
: array<string|int, mixed>
-
Return values
UnlockRequest
—
getUpsertRequest()
public
static getUpsertRequest(string $key, mixed $document, array<string|int, mixed> $location[, UpsertOptions|null $options = null ]) : UpsertRequest
Parameters
-
$key
: string
-
-
$document
: mixed
-
-
$location
: array<string|int, mixed>
-
-
$options
: UpsertOptions|null
= null
-
-
throws
-
InvalidArgumentException
Return values
UpsertRequest
—
convertStoreSemantic()
private
static convertStoreSemantic(string $storeSemantic) : int
Parameters
-
$storeSemantic
: string
-
-
throws
-
InvalidArgumentException
Return values
int
—
getLookupInSpec()
private
static getLookupInSpec(array<string|int, mixed> $exportedSpecs) : array<string|int, mixed>
Parameters
-
$exportedSpecs
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—
orderSubdocSpecs()
private
static orderSubdocSpecs(array<string|int, mixed> $exportedSpecs) : array<string|int, mixed>
Parameters
-
$exportedSpecs
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
—