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 Filterand(Filter filter)Creates an and filter which performs a logical AND operation on two filters and selects the documents that satisfy both filters.booleanequals(Object o)StringgetCollectionName()NitriteConfiggetNitriteConfig()BooleangetObjectFilter()inthashCode()Filteror(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.voidsetCollectionName(String collectionName)voidsetNitriteConfig(NitriteConfig nitriteConfig)voidsetObjectFilter(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)
-
-