Examples of ReadWritableFileAdapter


Examples of org.entityfs.util.io.ReadWritableFileAdapter

  @Override
  protected SimpleDatabase<Character, Character, Long> createCharacterDatabase()
  {
    File f = FileSupport.createTempFile();
    LogAdapterHolder lah = new LogAdapterHolder(new StdOutLogAdapter());
    DatabaseBackend<Character, Character, Long> b = new ConstantRecordSizeHeapBackend<Character, Character>(new ReadWritableFileAdapter(f), false, CharacterSerializer.INSTANCE, CharacterSerializer.INSTANCE, 0L, 8192, lah);
    SimpleDatabase<Character, Character, Long> res = new SimpleDatabase<Character, Character, Long>(b, lah);
    m_dbFiles.put(System.identityHashCode(res), f);
    return res;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.