com.scalar.db.common.EmptyScanner 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
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();
}
}