public SnapshotBase withReadLock()

in modules/core/src/main/java/org/apache/fluo/core/log/TracingTransaction.java [328:364]


  public SnapshotBase withReadLock() {
    SnapshotBase rltx = tx.withReadLock();

    return new AbstractSnapshotBase() {

      @Override
      public ScannerBuilder scanner() {
        // this is an unsupported op and will throw an exception so don't bother w/ trace logging
        return rltx.scanner();
      }

      @Override
      public long getStartTimestamp() {
        return rltx.getStartTimestamp();
      }

      @Override
      public Map<RowColumn, Bytes> get(Collection<RowColumn> rowColumns) {
        return TracingTransaction.this.get(rltx, rowColumns, "withReadLock().");
      }

      @Override
      public Map<Bytes, Map<Column, Bytes>> get(Collection<Bytes> rows, Set<Column> columns) {
        return TracingTransaction.this.get(rltx, rows, columns, "withReadLock().");
      }

      @Override
      public Map<Column, Bytes> get(Bytes row, Set<Column> columns) {
        return TracingTransaction.this.get(rltx, row, columns, "withReadLock().");
      }

      @Override
      public Bytes get(Bytes row, Column column) {
        return TracingTransaction.this.get(rltx, row, column, "withReadLock().");
      }
    };
  }