This project has retired. For details please refer to its
        
        Attic page.
      
org.apache.gora.query.impl
Class PartitionQueryImpl<K,T extends Persistent>
java.lang.Object
   org.apache.gora.query.impl.QueryBase<K,T>
org.apache.gora.query.impl.QueryBase<K,T>
       org.apache.gora.query.impl.PartitionQueryImpl<K,T>
org.apache.gora.query.impl.PartitionQueryImpl<K,T>
- All Implemented Interfaces: 
- PartitionQuery<K,T>, Query<K,T>, org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable
- Direct Known Subclasses: 
- FileSplitPartitionQuery
- public class PartitionQueryImpl<K,T extends Persistent> 
- extends QueryBase<K,T>- implements PartitionQuery<K,T>
Implementation for PartitionQuery.
 
 
 
 
| Methods inherited from class org.apache.gora.query.impl.QueryBase | 
| execute, getConf, getEndKey, getKey, getStartKey, hashCode, setConf, setDataStore, setEndKey, setKey, setKeyRange, setStartKey, toString | 
 
 
 
| Methods inherited from interface org.apache.hadoop.conf.Configurable | 
| getConf, setConf | 
 
baseQuery
protected Query<K,T extends Persistent> baseQuery
locations
protected String[] locations
PartitionQueryImpl
public PartitionQueryImpl()
PartitionQueryImpl
public PartitionQueryImpl(Query<K,T> baseQuery,
                          String... locations)
PartitionQueryImpl
public PartitionQueryImpl(Query<K,T> baseQuery,
                          K startKey,
                          K endKey,
                          String... locations)
getLocations
public String[] getLocations()
- Description copied from interface: PartitionQuery
- Returns the locations on which this partial query will run locally.
 
- 
- Specified by:
- getLocationsin interface- PartitionQuery<K,T extends Persistent>
 
- 
- Returns:
- the addresses of machines
 
getBaseQuery
public Query<K,T> getBaseQuery()
- 
 
- 
 
getFields
public String[] getFields()
- 
- Specified by:
- getFieldsin interface- Query<K,T extends Persistent>
- Overrides:
- getFieldsin class- QueryBase<K,T extends Persistent>
 
- 
 
getDataStore
public DataStore<K,T> getDataStore()
- Description copied from interface: Query
- Returns the DataStore, that this Query is associated with.
 
- 
- Specified by:
- getDataStorein interface- Query<K,T extends Persistent>
- Overrides:
- getDataStorein class- QueryBase<K,T extends Persistent>
 
- 
- Returns:
- the DataStore of the Query
 
getTimestamp
public long getTimestamp()
- 
- Specified by:
- getTimestampin interface- Query<K,T extends Persistent>
- Overrides:
- getTimestampin class- QueryBase<K,T extends Persistent>
 
- 
 
getStartTime
public long getStartTime()
- 
- Specified by:
- getStartTimein interface- Query<K,T extends Persistent>
- Overrides:
- getStartTimein class- QueryBase<K,T extends Persistent>
 
- 
 
getEndTime
public long getEndTime()
- 
- Specified by:
- getEndTimein interface- Query<K,T extends Persistent>
- Overrides:
- getEndTimein class- QueryBase<K,T extends Persistent>
 
- 
 
getLimit
public long getLimit()
- Description copied from interface: Query
- Returns the maximum number of results
 
- 
- Specified by:
- getLimitin interface- Query<K,T extends Persistent>
- Overrides:
- getLimitin class- QueryBase<K,T extends Persistent>
 
- 
- Returns:
- the limit if it is set, otherwise a negative number
 
setFields
public void setFields(String... fields)
- 
- Specified by:
- setFieldsin interface- Query<K,T extends Persistent>
- Overrides:
- setFieldsin class- QueryBase<K,T extends Persistent>
 
- 
 
setTimestamp
public void setTimestamp(long timestamp)
- 
- Specified by:
- setTimestampin interface- Query<K,T extends Persistent>
- Overrides:
- setTimestampin class- QueryBase<K,T extends Persistent>
 
- 
 
setStartTime
public void setStartTime(long startTime)
- 
- Specified by:
- setStartTimein interface- Query<K,T extends Persistent>
- Overrides:
- setStartTimein class- QueryBase<K,T extends Persistent>
 
- 
 
setEndTime
public void setEndTime(long endTime)
- 
- Specified by:
- setEndTimein interface- Query<K,T extends Persistent>
- Overrides:
- setEndTimein class- QueryBase<K,T extends Persistent>
 
- 
 
setTimeRange
public void setTimeRange(long startTime,
                         long endTime)
- 
- Specified by:
- setTimeRangein interface- Query<K,T extends Persistent>
- Overrides:
- setTimeRangein class- QueryBase<K,T extends Persistent>
 
- 
 
setLimit
public void setLimit(long limit)
- Description copied from interface: Query
- Sets the maximum number of results to return.
 
- 
- Specified by:
- setLimitin interface- Query<K,T extends Persistent>
- Overrides:
- setLimitin class- QueryBase<K,T extends Persistent>
 
- 
 
write
public void write(DataOutput out)
           throws IOException
- 
- Specified by:
- writein interface- org.apache.hadoop.io.Writable
- Overrides:
- writein class- QueryBase<K,T extends Persistent>
 
- 
- Throws:
- IOException
 
readFields
public void readFields(DataInput in)
                throws IOException
- 
- Specified by:
- readFieldsin interface- org.apache.hadoop.io.Writable
- Overrides:
- readFieldsin class- QueryBase<K,T extends Persistent>
 
- 
- Throws:
- IOException
 
equals
public boolean equals(Object obj)
- 
- Overrides:
- equalsin class- QueryBase<K,T extends Persistent>
 
- 
 
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.