Package net.sf.joafip.kvstore.entity

Examples of net.sf.joafip.kvstore.entity.IFileStorable.readFromFile()


    IFileStorable fileStorable = cache.get(positionInFile);
    if (fileStorable == null) {
      fileStorable = heapRecordFactory.createHeapRecord(this,
          positionInFile);
      cache.put(positionInFile, fileStorable);
      fileStorable.readFromFile();
    }
    return fileStorable;
  }

  @Override
View Full Code Here


  private IFileStorable readHeapRecordInFile(final long positionInFile)
      throws HeapException {
    final IFileStorable heapRecord = heapRecordFactory.createHeapRecord(
        this, positionInFile);
    try {
      heapRecord.readFromFile();
    } catch (HeapException exception) {
      final String message = READ_HEAP_FILE_NODE_FAILED
          + "read record failed, position in file #" + positionInFile;
      LOGGER.fatal(message, exception);
      throw new HeapException(message, exception);
View Full Code Here

    }
    if (heapRecord == null) {
      heapRecord = heapRecordFactory.createHeapRecord(this,
          positionInFile);
      try {
        heapRecord.readFromFile();
      } catch (HeapException exception) {
        final String message = READ_HEAP_FILE_NODE_FAILED
            + "read record at poistion " + positionInFile
            + " failed";
        LOGGER.fatal(message, exception);
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.