public class SqlPredicate extends Object implements IndexAwarePredicate, VisitablePredicate, IdentifiedDataSerializable
Constructor and Description |
---|
SqlPredicate() |
SqlPredicate(String sql) |
Modifier and Type | Method and Description |
---|---|
Predicate |
accept(Visitor visitor,
Indexes indexes)
Accept visitor.
|
boolean |
apply(Map.Entry mapEntry) |
boolean |
equals(Object o) |
Set<QueryableEntry> |
filter(QueryContext queryContext) |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Predicate |
getPredicate() |
int |
hashCode() |
boolean |
isIndexed(QueryContext queryContext) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public SqlPredicate(String sql)
public SqlPredicate()
public boolean isIndexed(QueryContext queryContext)
isIndexed
in interface IndexAwarePredicate
public Set<QueryableEntry> filter(QueryContext queryContext)
filter
in interface IndexAwarePredicate
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public Predicate accept(Visitor visitor, Indexes indexes)
VisitablePredicate
accept
in interface VisitablePredicate
visitor
- visitor to acceptindexes
- indexespublic Predicate getPredicate()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.