getDetail()

语法

db.collectionspace.collection.getDetail()

获取当前集合具体信息。

返回值

获取集合详细信息列表,并通过游标(cursor)的方式返回。

错误

错误码

示例

  • 获取集合 sample.employee 的详细信息。字段具体含义请参考集合快照视图

    1. > db.sample.employee.getDetail()
    2. {
    3. "Name": "sample.employee",
    4. "UniqueID": 22574348107782,
    5. "CollectionSpace": "sample",
    6. "Details": [
    7. {
    8. "NodeName": "hostname:11920",
    9. "GroupName": "group1",
    10. "ID": 1,
    11. "LogicalID": 1,
    12. "Sequence": 1,
    13. "Indexes": 2,
    14. "Status": "Normal",
    15. "Attribute": "Compressed",
    16. "CompressionType": "lzw",
    17. "DictionaryCreated": false,
    18. "DictionaryVersion": 0,
    19. "PageSize": 65536,
    20. "LobPageSize": 262144,
    21. "TotalRecords": 0,
    22. "TotalLobs": 0,
    23. "TotalDataPages": 0,
    24. "TotalIndexPages": 4,
    25. "TotalLobPages": 0,
    26. "TotalDataFreeSpace": 0,
    27. "TotalIndexFreeSpace": 131030,
    28. "CurrentCompressionRatio": 1,
    29. "DataCommitLSN": 14295548352,
    30. "IndexCommitLSN": 14295548428,
    31. "LobCommitLSN": 0,
    32. "DataCommitted": true,
    33. "IndexCommitted": true,
    34. "LobCommitted": true,
    35. "TotalDataRead": 0,
    36. "TotalIndexRead": 0,
    37. "TotalDataWrite": 0,
    38. "TotalIndexWrite": 0,
    39. "TotalUpdate": 0,
    40. "TotalDelete": 0,
    41. "TotalInsert": 0,
    42. "TotalSelect": 0,
    43. "TotalRead": 0,
    44. "TotalWrite": 0,
    45. "TotalTbScan": 0,
    46. "TotalIxScan": 0,
    47. "ResetTimestamp": "2020-04-04-16.20.52.155061"
    48. }
    49. ]
    50. }
    51. ...