Datastore for key-value pair data for use with
mapreduce
KeyValueDatastore
objects are associated with files
containing key-value pair data that are outputs of or inputs to
mapreduce
. Use the KeyValueDatastore
properties to specify how you want to access the data. Use dot notation to view or
modify a particular property of a KeyValueDatastore
object:
ds = datastore('mapredout.mat');
ds.ReadSize = 20;
You also can specify the value of KeyValueDatastore
properties
using name-value pair arguments when you create a datastore using the
datastore
function:
ds = datastore('mapredout.mat','ReadSize',20);
Create KeyValueDatastore
objects using the datastore
function.
hasdata | Determine if data is available to read |
numpartitions | Number of datastore partitions |
partition | Partition a datastore |
preview | Preview subset of data in datastore |
read | Read data in datastore |
readall | Read all data in datastore |
reset | Reset datastore to initial state |
transform | Transform datastore |
combine | Combine data from multiple datastores |
isPartitionable | Determine whether datastore is partitionable |
isShuffleable | Determine whether datastore is shuffleable |
KeyValueDatastore
does not support sequence files written
in R2013b. Rewrite the sequence files using a version of MATLAB between R2014a and R2018a.