public class HdfsLockFactory
extends org.apache.lucene.store.LockFactory
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
HdfsLockFactory(org.apache.hadoop.fs.Path lockPath,
org.apache.hadoop.conf.Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
clearLock(String lockName) |
org.apache.hadoop.fs.Path |
getLockPath() |
org.apache.lucene.store.Lock |
makeLock(String lockName) |
void |
setLockPath(org.apache.hadoop.fs.Path lockPath) |
public HdfsLockFactory(org.apache.hadoop.fs.Path lockPath, org.apache.hadoop.conf.Configuration configuration)
public org.apache.lucene.store.Lock makeLock(String lockName)
makeLock
in class org.apache.lucene.store.LockFactory
public void clearLock(String lockName) throws IOException
clearLock
in class org.apache.lucene.store.LockFactory
IOException
public org.apache.hadoop.fs.Path getLockPath()
public void setLockPath(org.apache.hadoop.fs.Path lockPath)
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.