pack_all()pack_all()

Crea un dynamic oggetto (contenitore delle proprietà) da tutte le colonne dell'espressione tabulare.Creates a dynamic object (property bag) from all the columns of the tabular expression.

Nota

La rappresentazione dell'oggetto restituito non è garantita come compatibile a livello di byte tra le esecuzioni.The representation of the returned object isn't guaranteed to be byte-level-compatible between runs. Ad esempio, le proprietà visualizzate nel contenitore possono apparire in un ordine diverso.For example, properties that appear in the bag may appear in a different order.

SintassiSyntax

pack_all()

EsempiExamples

Data una tabella SmsMessagesGiven a table SmsMessages

SourceNumberSourceNumber TargetNumberTargetNumber CharsCountCharsCount
555-555-1234555-555-1234 555-555-1212555-555-1212 4646
555-555-1234555-555-1234 555-555-1213555-555-1213 5050
555-555-1212555-555-1212 555-555-1234555-555-1234 3232

La query seguente:The following query:

datatable(SourceNumber:string,TargetNumber:string,CharsCount:long)
[
'555-555-1234','555-555-1212',46,
'555-555-1234','555-555-1213',50,
'555-555-1212','555-555-1234',32
]
| extend Packed=pack_all()

Restituisce:Returns:

TableNameTableName SourceNumberSourceNumber TargetNumberTargetNumber CompressiPacked
SmsMessagesSmsMessages 555-555-1234555-555-1234 555-555-1212555-555-1212 {"SourceNumber": "555-555-1234", "TargetNumber": "555-555-1212", "CharsCount": 46}{"SourceNumber":"555-555-1234", "TargetNumber":"555-555-1212", "CharsCount": 46}
SmsMessagesSmsMessages 555-555-1234555-555-1234 555-555-1213555-555-1213 {"SourceNumber": "555-555-1234", "TargetNumber": "555-555-1213", "CharsCount": 50}{"SourceNumber":"555-555-1234", "TargetNumber":"555-555-1213", "CharsCount": 50}
SmsMessagesSmsMessages 555-555-1212555-555-1212 555-555-1234555-555-1234 {"SourceNumber": "555-555-1212", "TargetNumber": "555-555-1234", "CharsCount": 32}{"SourceNumber":"555-555-1212", "TargetNumber":"555-555-1234", "CharsCount": 32}