This project has retired. For details please refer to its
        
        Attic page .
      
DataFileAvroStore (Apache Gora 0.2.1 API)
 
 
org.apache.gora.avro.store 
Persistent > 
java.lang.Object 
  org.apache.gora.store.impl.DataStoreBase <K,T>
      org.apache.gora.store.impl.FileBackedDataStoreBase <K,T>
          org.apache.gora.avro.store.AvroStore <K,T>
              org.apache.gora.avro.store.DataFileAvroStore<K,T> 
 
All Implemented Interfaces:  Closeable , DataStore <K,T>, FileBackedDataStore <K,T>, org.apache.hadoop.conf.Configurable, org.apache.hadoop.io.Writable 
public class DataFileAvroStore<K,T extends Persistent >  extends AvroStore <K,T>  
DataFileAvroStore is file based store which uses Avro's 
 DataFile{Writer,Reader}'s as a backend. This datastore supports 
 mapreduce.
 
Methods inherited from class org.apache.gora.avro.store.AvroStore   
createDatumReader , createDatumWriter , createDecoder , createEncoder , delete , deleteByQuery , getConf , getDatumReader , getDatumWriter , getDecoder , getEncoder , getSchemaName , initialize , newQuery , readFields , setCodecType , setDatumReader , setDatumWriter , setDecoder , setEncoder , write  
 
Methods inherited from class org.apache.gora.store.impl.FileBackedDataStoreBase   
createInputStream , createOutputStream , createSchema , deleteSchema , execute , getInputPath , getInputStream , getOrCreateInputStream , getOrCreateOutputStream , getOutputPath , getOutputStream , getPartitions , schemaExists , setInputPath , setInputStream , setOutputPath , setOutputStream  
 
Methods inherited from class org.apache.gora.store.impl.DataStoreBase   
equals , get , getBeanFactory , getFieldsToQuery , getKeyClass , getOrCreateConf , getPersistentClass , getSchemaName , newKey , newPersistent , setBeanFactory , setConf , setKeyClass , setPersistentClass , truncateSchema  
 
Methods inherited from interface org.apache.hadoop.conf.Configurable  
setConf 
 
Methods inherited from interface org.apache.gora.store.DataStore   
get , getBeanFactory , getKeyClass , getPersistentClass , newKey , newPersistent , setBeanFactory , setConf , setKeyClass , setPersistentClass , truncateSchema  
 
DataFileAvroStore 
public DataFileAvroStore () 
 
get 
public T  get (K  key,
             String [] fields)
                         throws IOException  
Description copied from interface: DataStore  Returns the object corresponding to the given key.
Specified by: get DataStore <K ,T  extends Persistent >Overrides: get AvroStore <K ,T  extends Persistent > 
Parameters: key - the key of the objectfields - the fields required in the object. Pass null, to retrieve all fields
Returns: the Object corresponding to the key or null if it cannot be found
 Throws: 
IOException  
  
put 
public void put (K  key,
                T  obj)
         throws IOException  
Description copied from interface: DataStore  Inserts the persistent object with the given key. If an 
 object with the same key already exists it will silently
 be replaced. See also the note on 
 visibility .
Specified by: put DataStore <K ,T  extends Persistent >Overrides: put AvroStore <K ,T  extends Persistent > 
Throws: 
IOException  
  
executeQuery 
protected Result <K ,T > executeQuery (Query <K ,T > query)
                                               throws IOException  
Description copied from class: AvroStore  Executes a normal Query reading the whole data. #execute() calls this function
 for non-PartitionQuery's.
Overrides: executeQuery AvroStore <K ,T  extends Persistent > 
Throws: 
IOException  
  
executePartial 
protected Result <K ,T > executePartial (FileSplitPartitionQuery <K ,T > query)
                                                 throws IOException  
Description copied from class: AvroStore  Executes a PartitialQuery, reading the data between start and end.
Overrides: executePartial AvroStore <K ,T  extends Persistent > 
Throws: 
IOException  
  
flush 
public void flush ()
           throws IOException  
Description copied from interface: DataStore  Forces the write caches to be flushed. DataStore implementations may
 optimize their writing by deferring the actual put / delete operations
 until this moment.
 See also the note on visibility .
Specified by: flush DataStore <K ,T  extends Persistent >Overrides: flush AvroStore <K ,T  extends Persistent > 
Throws: 
IOException  
  
close 
public void close ()
           throws IOException  
Description copied from interface: DataStore  Close the DataStore. This should release any resources held by the
 implementation, so that the instance is ready for GC.
 All other DataStore methods cannot be used after this
 method was called. Subsequent calls of this method are ignored.
Specified by: close Closeable Specified by: close DataStore <K ,T  extends Persistent >Overrides: close AvroStore <K ,T  extends Persistent > 
Throws: 
IOException  
  
The Apache Software Foundation . All Rights Reserved.