com.scalar.database.api.Scanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalardb Show documentation
Show all versions of scalardb Show documentation
A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases
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();
}