gov.nasa.pds.api.registry.model.Unlimited Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of registry-api-service Show documentation
Show all versions of registry-api-service Show documentation
Registry API Service contributing to the PDS Federated Search API
package gov.nasa.pds.api.registry.model;
import gov.nasa.pds.api.registry.LidvidsContext;
import java.util.List;
class Unlimited implements LidvidsContext {
final private String lidvid;
Unlimited(String id) {
this.lidvid = id;
}
@Override
public String getProductIdentifierStr() {
return this.lidvid;
}
@Override
public Integer getLimit() {
return Integer.MAX_VALUE;
}
@Override
public List getSortFields() {
return List.of("ops:Harvest_Info/ops:harvest_date_time");
}
@Override
public List getSearchAfterValues() {
return List.of(""); // TODO: Check whether this actually works or if it needs to be set per-page in the contexts in which Unlimited is used
}
@Override
public boolean getSingletonResultExpected() {
return false;
}
}