class ShardCommand extends AbstractCommand (View source)

Constants

DB

COLLECTION

INDEX

Methods

configure()

No description

processDocumentCollection(SchemaManager $sm, string $document, int|null $maxTimeMs, WriteConcern|null $writeConcern)

No description

processCollection(SchemaManager $sm, int|null $maxTimeMs, WriteConcern|null $writeConcern)

No description

processDocumentDb(SchemaManager $sm, string $document, int|null $maxTimeMs, WriteConcern|null $writeConcern)

No description

processDb(SchemaManager $sm, int|null $maxTimeMs, WriteConcern|null $writeConcern)

No description

processDocumentIndex(SchemaManager $sm, string $document, int|null $maxTimeMs = null, WriteConcern|null $writeConcern = null)

No description

processIndex(SchemaManager $sm, int|null $maxTimeMs = null, WriteConcern|null $writeConcern = null)

No description

getMaxTimeMsFromInput(InputInterface $input)

No description

getWriteConcernFromInput(InputInterface $input)

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

Details

protected configure()

protected processDocumentCollection(SchemaManager $sm, string $document, int|null $maxTimeMs, WriteConcern|null $writeConcern)

Parameters

SchemaManager $sm
string $document
int|null $maxTimeMs
WriteConcern|null $writeConcern

Exceptions

BadMethodCallException

protected processCollection(SchemaManager $sm, int|null $maxTimeMs, WriteConcern|null $writeConcern)

Parameters

SchemaManager $sm
int|null $maxTimeMs
WriteConcern|null $writeConcern

Exceptions

BadMethodCallException

protected processDocumentDb(SchemaManager $sm, string $document, int|null $maxTimeMs, WriteConcern|null $writeConcern)

Parameters

SchemaManager $sm
string $document
int|null $maxTimeMs
WriteConcern|null $writeConcern

Exceptions

BadMethodCallException

protected processDb(SchemaManager $sm, int|null $maxTimeMs, WriteConcern|null $writeConcern)

Parameters

SchemaManager $sm
int|null $maxTimeMs
WriteConcern|null $writeConcern

Exceptions

BadMethodCallException

protected processDocumentIndex(SchemaManager $sm, string $document, int|null $maxTimeMs = null, WriteConcern|null $writeConcern = null)

Parameters

SchemaManager $sm
string $document
int|null $maxTimeMs
WriteConcern|null $writeConcern

protected processIndex(SchemaManager $sm, int|null $maxTimeMs = null, WriteConcern|null $writeConcern = null)

Parameters

SchemaManager $sm
int|null $maxTimeMs
WriteConcern|null $writeConcern

protected SchemaManager getSchemaManager()

Return Value

SchemaManager

protected DocumentManager getDocumentManager()

Return Value

DocumentManager

protected ClassMetadataFactory getMetadataFactory()

Return Value

ClassMetadataFactory

protected getMaxTimeMsFromInput(InputInterface $input)

Parameters

InputInterface $input

protected getWriteConcernFromInput(InputInterface $input)

Parameters

InputInterface $input

protected int execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

Return Value

int