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

com.scalar.database.api.Scanner Maven / Gradle / Ivy

Go to download

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

There is a newer version: 3.14.0-alpha.1
Show newest version
package com.scalar.database.api;

import java.util.List;
import java.util.Optional;

/**
 * A scanner abstraction for iterating results.
 *
 * @author Hiroyuki Yamada
 */
public interface Scanner extends Iterable {

  /**
   * Returns the first result in the results.
   *
   * @return the first result in the results
   */
  Optional one();

  /**
   * Returns all the results.
   *
   * @return the list of {@code Result}s
   */
  List all();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy