public interface GridGgfsFile
GGFS file or directory descriptor. For example, to get information about
a file you would use the following code:
GridGgfsPath filePath = new GridGgfsPath("my/working/dir", "file.txt");
// Get metadata about file.
GridGgfsFile file = ggfs.info(filePath);
| Modifier and Type | Method and Description |
|---|---|
long |
accessTime()
Gets file last access time.
|
int |
blockSize()
Gets file's data block size.
|
long |
groupBlockSize()
Gets file group block size (i.e.
|
boolean |
isDirectory()
Check this file is a directory.
|
boolean |
isFile()
Check this file is a data file.
|
long |
length()
Gets file's length.
|
long |
modificationTime()
Gets file last modification time.
|
GridGgfsPath |
path()
Gets path to file.
|
Map<String,String> |
properties()
Get properties of the file.
|
String |
property(String name)
Get file's property for specified name.
|
String |
property(String name,
String dfltVal)
Get file's property for specified name.
|
GridGgfsPath path()
boolean isFile()
True if this is a data file.boolean isDirectory()
True if this is a directory.long length()
zero for directories.int blockSize()
zero for directories.long groupBlockSize()
long accessTime()
GridGgfs.setTimes(GridGgfsPath, long, long) method.
By default last access time equals file creation time.
long modificationTime()
String property(String name) throws IllegalArgumentException
name - Name of the property.IllegalArgumentException - If requested property was not found.@Nullable String property(String name, @Nullable String dfltVal)
name - Name of the property.dfltVal - Default value if requested property was not found.Copyright © 2014. All rights reserved.