Package org.dizitart.no2.filters
Class NitriteFilter
- java.lang.Object
-
- org.dizitart.no2.filters.NitriteFilter
-
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
FieldBasedFilter
,LogicalFilter
public abstract class NitriteFilter extends Object implements Filter
An abstract class representing a filter for Nitrite database.- Since:
- 4.0
- Author:
- Anindya Chatterjee.
-
-
Constructor Summary
Constructors Constructor Description NitriteFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Filter
and(Filter filter)
Creates an and filter which performs a logical AND operation on two filters and selects the documents that satisfy both filters.boolean
equals(Object o)
String
getCollectionName()
NitriteConfig
getNitriteConfig()
Boolean
getObjectFilter()
int
hashCode()
Filter
or(Filter filter)
Creates an or filter which performs a logical OR operation on two filters and selects the documents that satisfy at least one of the filter.void
setCollectionName(String collectionName)
void
setNitriteConfig(NitriteConfig nitriteConfig)
void
setObjectFilter(Boolean objectFilter)
-
-
-
Method Detail
-
and
public Filter and(Filter filter)
Creates an and filter which performs a logical AND operation on two filters and selects the documents that satisfy both filters.- Parameters:
filter
- other filter- Returns:
- the and filter
-
or
public Filter or(Filter filter)
Creates an or filter which performs a logical OR operation on two filters and selects the documents that satisfy at least one of the filter.- Parameters:
filter
- other filter- Returns:
- the or filter
-
getNitriteConfig
public NitriteConfig getNitriteConfig()
-
getCollectionName
public String getCollectionName()
-
getObjectFilter
public Boolean getObjectFilter()
-
setNitriteConfig
public void setNitriteConfig(NitriteConfig nitriteConfig)
-
setCollectionName
public void setCollectionName(String collectionName)
-
setObjectFilter
public void setObjectFilter(Boolean objectFilter)
-
-