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

com.scalar.db.common.EmptyScanner Maven / Gradle / Ivy

Go to download

A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases

The newest version!
package com.scalar.db.common;

import com.scalar.db.api.Result;
import com.scalar.db.api.Scanner;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;

public class EmptyScanner implements Scanner {

  @Override
  public Optional one() {
    return Optional.empty();
  }

  @Override
  public List all() {
    return Collections.emptyList();
  }

  @Override
  public void close() {}

  @Override
  public Iterator iterator() {
    return Collections.emptyIterator();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy