Metadata

From Mstor Wiki
Jump to: navigation, search

The concept of metadata was introduced to support JavaMail features not available in the Mbox format. Metadata also serves as fast access message index .

XML Binding

Initially metadata in mstor was implemented via a simple custom XML binding framework. XML metadata can be enabled in three (3) ways:

  • Session properties
Properties properties = new Properties();
properties.setProperty("mstor.mbox.metadataStrategy", "xml");

Session session = Session.getDefaultInstance(properties);

Store store = session.getStore(new URLName("mstor:/some/path/to/store"));
store.connect();

// further store operations..
  • mstor.properties - add the following line to this file in your classpath:
mstor.mbox.metadataStrategy=xml
  • System properties
java -Dmstor.mbox.metadataStrategy=xml <your_program>

YAML

Support for Yaml metadata

Personal tools