All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.orientechnologies.orient.core.db.document.SimpleRecordReader Maven / Gradle / Ivy

There is a newer version: 3.2.32
Show newest version
package com.orientechnologies.orient.core.db.document;

import com.orientechnologies.orient.core.exception.ORecordNotFoundException;
import com.orientechnologies.orient.core.id.ORecordId;
import com.orientechnologies.orient.core.storage.ORawBuffer;
import com.orientechnologies.orient.core.storage.OStorage;

/** @Internal */
public final class SimpleRecordReader implements RecordReader {
  private final boolean prefetchRecords;

  public SimpleRecordReader(boolean prefetchRecords) {
    this.prefetchRecords = prefetchRecords;
  }

  @Override
  public ORawBuffer readRecord(
      OStorage storage,
      ORecordId rid,
      String fetchPlan,
      boolean ignoreCache,
      final int recordVersion)
      throws ORecordNotFoundException {
    return storage.readRecord(rid, fetchPlan, ignoreCache, prefetchRecords, null).getResult();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy