com.hazelcast.query
Class SqlPredicate
java.lang.Object
com.hazelcast.query.Predicates.AbstractPredicate
com.hazelcast.query.SqlPredicate
- All Implemented Interfaces:
- DataSerializable, IndexAwarePredicate, Predicate, Serializable
public class SqlPredicate
- extends Predicates.AbstractPredicate
- implements IndexAwarePredicate
This class contains methods related to conversion of sql query to predicate.
- See Also:
- Serialized Form
SqlPredicate
public SqlPredicate(String sql)
SqlPredicate
public SqlPredicate()
apply
public boolean apply(Map.Entry mapEntry)
- Specified by:
apply
in interface Predicate
isIndexed
public boolean isIndexed(QueryContext queryContext)
- Specified by:
isIndexed
in interface IndexAwarePredicate
- Overrides:
isIndexed
in class Predicates.AbstractPredicate
filter
public Set<QueryableEntry> filter(QueryContext queryContext)
- Specified by:
filter
in interface IndexAwarePredicate
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Overrides:
writeData
in class Predicates.AbstractPredicate
- Parameters:
out
- output
- Throws:
IOException
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Overrides:
readData
in class Predicates.AbstractPredicate
- Parameters:
in
- input
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.