org.apache.blur.store.hdfs_v2
Class HdfsKeyValueStore

java.lang.Object
  extended by org.apache.blur.store.hdfs_v2.HdfsKeyValueStore
All Implemented Interfaces:
Closeable, Store

public class HdfsKeyValueStore
extends Object
implements Store


Constructor Summary
HdfsKeyValueStore(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path)
           
HdfsKeyValueStore(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path path, long maxAmountAllowedPerFile)
           
 
Method Summary
 void cleanupOldFiles()
           
 void close()
           
 void delete(org.apache.lucene.util.BytesRef key)
           
 boolean get(org.apache.lucene.util.BytesRef key, org.apache.lucene.util.BytesRef value)
           
 void put(org.apache.lucene.util.BytesRef key, org.apache.lucene.util.BytesRef value)
           
 Iterable<Map.Entry<org.apache.lucene.util.BytesRef,org.apache.lucene.util.BytesRef>> scan(org.apache.lucene.util.BytesRef key)
           
 void sync()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HdfsKeyValueStore

public HdfsKeyValueStore(org.apache.hadoop.conf.Configuration configuration,
                         org.apache.hadoop.fs.Path path)
                  throws IOException
Throws:
IOException

HdfsKeyValueStore

public HdfsKeyValueStore(org.apache.hadoop.conf.Configuration configuration,
                         org.apache.hadoop.fs.Path path,
                         long maxAmountAllowedPerFile)
                  throws IOException
Throws:
IOException
Method Detail

sync

public void sync()
          throws IOException
Specified by:
sync in interface Store
Throws:
IOException

scan

public Iterable<Map.Entry<org.apache.lucene.util.BytesRef,org.apache.lucene.util.BytesRef>> scan(org.apache.lucene.util.BytesRef key)
                                                                                          throws IOException
Specified by:
scan in interface Store
Throws:
IOException

put

public void put(org.apache.lucene.util.BytesRef key,
                org.apache.lucene.util.BytesRef value)
         throws IOException
Specified by:
put in interface Store
Throws:
IOException

cleanupOldFiles

public void cleanupOldFiles()
                     throws IOException
Throws:
IOException

get

public boolean get(org.apache.lucene.util.BytesRef key,
                   org.apache.lucene.util.BytesRef value)
            throws IOException
Specified by:
get in interface Store
Throws:
IOException

delete

public void delete(org.apache.lucene.util.BytesRef key)
            throws IOException
Specified by:
delete in interface Store
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in interface Store
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.