|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.backend.local.datastorage.LocalDataStorage
public class LocalDataStorage
Field Summary | |
---|---|
protected File |
workingDir
|
Fields inherited from interface org.apache.pig.backend.datastorage.DataStorage |
---|
DEFAULT_REPLICATION_FACTOR_KEY, RAW_CAPACITY_KEY, RAW_USED_KEY, USED_BYTES_KEY |
Constructor Summary | |
---|---|
LocalDataStorage()
|
Method Summary | |
---|---|
LocalPath[] |
asCollection(String pattern)
|
LocalDir |
asContainer(ContainerDescriptor container)
|
LocalDir |
asContainer(ContainerDescriptor parent,
ContainerDescriptor child)
|
LocalDir |
asContainer(ContainerDescriptor parent,
String child)
|
LocalDir |
asContainer(String name)
Created an entity handle for a container. |
LocalDir |
asContainer(String parent,
String child)
|
LocalPath |
asElement(ContainerDescriptor parent,
ElementDescriptor child)
|
LocalPath |
asElement(ContainerDescriptor parent,
String child)
|
LocalPath |
asElement(ElementDescriptor element)
|
LocalPath |
asElement(String name)
Creates an entity handle for an object (no containment relation) from a String |
LocalPath |
asElement(String parent,
String child)
|
void |
close()
Clean-up and releasing of resources. |
ContainerDescriptor |
getActiveContainer()
|
Properties |
getConfiguration()
Provides configuration information about the storage itself. |
Map<String,Object> |
getStatistics()
Provides statistics on the Storage: capacity values, how much storage is in use... |
File |
getWorkingDir()
|
void |
init()
Place holder for possible initialization activities. |
boolean |
isContainer(String name)
|
void |
setActiveContainer(ContainerDescriptor container)
|
void |
updateConfiguration(Properties newConfiguration)
Provides a way to change configuration parameters at the Data Storage level. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File workingDir
Constructor Detail |
---|
public LocalDataStorage()
Method Detail |
---|
public void init()
DataStorage
init
in interface DataStorage
public void close() throws IOException
DataStorage
close
in interface DataStorage
IOException
public Properties getConfiguration()
DataStorage
getConfiguration
in interface DataStorage
public void updateConfiguration(Properties newConfiguration) throws DataStorageException
DataStorage
updateConfiguration
in interface DataStorage
newConfiguration
- - the new configuration settings
DataStorageException
public Map<String,Object> getStatistics() throws IOException
DataStorage
getStatistics
in interface DataStorage
IOException
public LocalPath asElement(String name) throws DataStorageException
DataStorage
asElement
in interface DataStorage
name
- of the object
DataStorageException
- if name does not conform to naming
convention enforced by the Data Storage.public LocalPath asElement(ElementDescriptor element) throws DataStorageException
asElement
in interface DataStorage
DataStorageException
public LocalPath asElement(String parent, String child) throws DataStorageException
asElement
in interface DataStorage
DataStorageException
public LocalPath asElement(ContainerDescriptor parent, String child) throws DataStorageException
asElement
in interface DataStorage
DataStorageException
public LocalPath asElement(ContainerDescriptor parent, ElementDescriptor child) throws DataStorageException
asElement
in interface DataStorage
DataStorageException
public LocalDir asContainer(String name) throws DataStorageException
DataStorage
asContainer
in interface DataStorage
name
- of the container
DataStorageException
- if name does not conform to naming
convention enforced by the Data Storage.public LocalDir asContainer(ContainerDescriptor container) throws DataStorageException
asContainer
in interface DataStorage
DataStorageException
public LocalDir asContainer(String parent, String child) throws DataStorageException
asContainer
in interface DataStorage
DataStorageException
public LocalDir asContainer(ContainerDescriptor parent, String child) throws DataStorageException
asContainer
in interface DataStorage
DataStorageException
public LocalDir asContainer(ContainerDescriptor parent, ContainerDescriptor child) throws DataStorageException
asContainer
in interface DataStorage
DataStorageException
public boolean isContainer(String name) throws DataStorageException
isContainer
in interface DataStorage
DataStorageException
public void setActiveContainer(ContainerDescriptor container)
setActiveContainer
in interface DataStorage
public ContainerDescriptor getActiveContainer()
getActiveContainer
in interface DataStorage
public LocalPath[] asCollection(String pattern) throws DataStorageException
asCollection
in interface DataStorage
DataStorageException
public File getWorkingDir()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |