public class PartitionQueryImpl<K,T extends PersistentBase> extends QueryBase<K,T> implements PartitionQuery<K,T>
PartitionQuery
.Modifier and Type | Field and Description |
---|---|
protected Query<K,T> |
baseQuery |
protected String[] |
locations |
Constructor and Description |
---|
PartitionQueryImpl() |
PartitionQueryImpl(Query<K,T> baseQuery,
K startKey,
K endKey,
String... locations) |
PartitionQueryImpl(Query<K,T> baseQuery,
String... locations) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Query<K,T> |
getBaseQuery() |
DataStore<K,T> |
getDataStore()
Returns the DataStore, that this Query is associated with.
|
long |
getEndTime() |
String[] |
getFields() |
Filter<K,T> |
getFilter() |
long |
getLimit()
Returns the maximum number of results
|
String[] |
getLocations()
Returns the locations on which this partial query will run locally.
|
long |
getStartTime() |
long |
getTimestamp() |
void |
readFields(DataInput in) |
void |
setEndTime(long endTime) |
void |
setFields(String... fields) |
void |
setFilter(Filter<K,T> filter) |
void |
setLimit(long limit)
Sets the maximum number of results to return.
|
void |
setStartTime(long startTime) |
void |
setTimeRange(long startTime,
long endTime) |
void |
setTimestamp(long timestamp) |
void |
write(DataOutput out) |
execute, getConf, getEndKey, getKey, getStartKey, hashCode, isLocalFilterEnabled, setConf, setDataStore, setEndKey, setKey, setKeyRange, setLocalFilterEnabled, setStartKey, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
execute, getEndKey, getKey, getStartKey, isLocalFilterEnabled, setDataStore, setEndKey, setKey, setKeyRange, setLocalFilterEnabled, setStartKey
protected Query<K,T extends PersistentBase> baseQuery
protected String[] locations
public String[] getLocations()
PartitionQuery
getLocations
in interface PartitionQuery<K,T extends PersistentBase>
public String[] getFields()
getFields
in interface Query<K,T extends PersistentBase>
getFields
in class QueryBase<K,T extends PersistentBase>
public DataStore<K,T> getDataStore()
Query
getDataStore
in interface Query<K,T extends PersistentBase>
getDataStore
in class QueryBase<K,T extends PersistentBase>
public long getTimestamp()
getTimestamp
in interface Query<K,T extends PersistentBase>
getTimestamp
in class QueryBase<K,T extends PersistentBase>
public long getStartTime()
getStartTime
in interface Query<K,T extends PersistentBase>
getStartTime
in class QueryBase<K,T extends PersistentBase>
public long getEndTime()
getEndTime
in interface Query<K,T extends PersistentBase>
getEndTime
in class QueryBase<K,T extends PersistentBase>
public long getLimit()
Query
getLimit
in interface Query<K,T extends PersistentBase>
getLimit
in class QueryBase<K,T extends PersistentBase>
public void setFields(String... fields)
setFields
in interface Query<K,T extends PersistentBase>
setFields
in class QueryBase<K,T extends PersistentBase>
public void setTimestamp(long timestamp)
setTimestamp
in interface Query<K,T extends PersistentBase>
setTimestamp
in class QueryBase<K,T extends PersistentBase>
public void setStartTime(long startTime)
setStartTime
in interface Query<K,T extends PersistentBase>
setStartTime
in class QueryBase<K,T extends PersistentBase>
public void setEndTime(long endTime)
setEndTime
in interface Query<K,T extends PersistentBase>
setEndTime
in class QueryBase<K,T extends PersistentBase>
public void setTimeRange(long startTime, long endTime)
setTimeRange
in interface Query<K,T extends PersistentBase>
setTimeRange
in class QueryBase<K,T extends PersistentBase>
public void setLimit(long limit)
Query
setLimit
in interface Query<K,T extends PersistentBase>
setLimit
in class QueryBase<K,T extends PersistentBase>
public Filter<K,T> getFilter()
getFilter
in interface Query<K,T extends PersistentBase>
getFilter
in class QueryBase<K,T extends PersistentBase>
null
if none.public void setFilter(Filter<K,T> filter)
setFilter
in interface Query<K,T extends PersistentBase>
setFilter
in class QueryBase<K,T extends PersistentBase>
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class QueryBase<K,T extends PersistentBase>
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class QueryBase<K,T extends PersistentBase>
IOException
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.