KeyValueDatastore
用于与键值配对数据一起使用的数据存储MapReduce
描述
KeyValueDatastore
objects are associated with files containing key-value pair data that are outputs of or inputs toMapReduce
. Use theKeyValueDatastore
properties to specify how you want to access the data. Use dot notation to view or modify a particular property of aKeyValueDatastore
目的:
ds = datastore("mapredout.mat"); ds.ReadSize = 20;
您还可以指定KeyValueDatastore
使用名称值参数参数的属性,当您使用该数据存储使用该数据存储datastore
function:
ds = datastore("mapredout.mat","ReadSize",20);
Creation
创造KeyValueDatastore
使用datastore
function.
Properties
Object Functions
hasdata |
Determine if data is available to read |
numpartitions |
数据存储分区的数量 |
partition |
分区数据存储 |
preview |
Preview subset of data in datastore |
读 |
在数据存储中读取数据 |
读all |
Read all data in datastore |
重置 |
Reset datastore to initial state |
转换 |
Transform datastore |
结合 |
Combine data from multiple datastores |
isPartitionable |
确定数据存储是否可以分区 |
isShuffleable |
Determine whether datastore is shuffleable |
例子
限制
KeyValueDatastore
不支持命令序列文件万博1manbetxten in R2013b. Rewrite the sequence files using a version of MATLAB between R2014a and R2018a.