public final class PSPredicate extends Object implements Serializable
Constructor and Description |
---|
PSPredicate() |
Modifier and Type | Method and Description |
---|---|
void |
addFacet(String field,
String value)
Add a facet for the specified index field.
|
void |
addPropertyFacet(String property,
String value)
Add a facet for the specified property.
|
int |
getPage() |
int |
getPageSize() |
String |
getSortBy() |
String |
getType() |
void |
setBetween(Date from,
Date to) |
void |
setFrom(Date from) |
void |
setFrom(long from) |
void |
setPage(int page) |
void |
setPageSize(int pageSize) |
void |
setSortBy(String sortBy) |
void |
setTo(Date to) |
void |
setTo(long to) |
void |
setType(String type) |
Map<String,String> |
toParameters() |
String |
toString() |
public void setType(String type)
type
- the type to setpublic String getType()
public void setPage(int page)
page
- the page to setIndexOutOfBoundsException
- if the page is zero or negative.public int getPage()
public void setPageSize(int pageSize)
pageSize
- the pageSize to setpublic int getPageSize()
public void addFacet(String field, String value)
field
- The name of the index fieldvalue
- The value it should match (for that facet)public void setFrom(long from)
public void setTo(long to)
public void setFrom(Date from)
public void setTo(Date to)
public void setSortBy(String sortBy)
public String getSortBy()
public void addPropertyFacet(String property, String value)
This method is a shorthand for addFacet("psproperty-"+property, value)
.
property
- The name of the PSML propertyvalue
- The value it should match (for that facet)addFacet(String, String)
public Map<String,String> toParameters()
Copyright © 2016 Allette Systems. All rights reserved.