|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.fsm.FileStorageModelNew
public class FileStorageModelNew
Represents a method for storing data sets in a set of files by time. The client provides a regex for the files and how each group of the regex is interpreted as a time digit. The model can then be used to provide the set of files that cover a time range, etc. This new implementation uses a TimeParser object to more quickly process file names.
Method Summary | |
---|---|
boolean |
containsFile(java.io.File file)
|
static FileStorageModelNew |
create(FileSystem root,
java.lang.String template)
creates a FileStorageModel for the given template, which uses: %Y-%m-%dT%H:%M:%S.%{milli}Z"; %Y 4-digit year %m 2-digit month %d 2-digit day of month %j 3-digit day of year %H 2-digit Hour %M 2-digit Minute %S 2-digit second %{milli} 3-digit milliseconds |
static FileStorageModelNew |
create(FileSystem root,
java.lang.String template,
java.lang.String fieldName,
TimeParser.FieldHandler fieldHandler)
creates a FileStorageModel for the given template, but with a custom FieldHandler and field. |
static CacheTag |
getCacheTagFor(FileStorageModelNew fsm,
DatumRange range,
java.io.File[] files)
|
static CacheTag |
getCacheTagFor(FileStorageModelNew fsm,
DatumRange range,
java.lang.String[] names)
|
java.lang.String |
getFilenameFor(Datum start,
Datum end)
|
java.io.File[] |
getFilesFor(DatumRange targetRange)
|
java.io.File[] |
getFilesFor(DatumRange targetRange,
ProgressMonitor monitor)
|
java.lang.String |
getNameFor(java.io.File file)
Provides a way to recover the model name of a file. |
java.lang.String[] |
getNamesFor(DatumRange targetRange)
|
java.lang.String[] |
getNamesFor(DatumRange targetRange,
ProgressMonitor monitor)
|
DatumRange |
getRangeFor(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getFilenameFor(Datum start, Datum end)
public java.lang.String[] getNamesFor(DatumRange targetRange) throws java.io.IOException
java.io.IOException
public java.lang.String[] getNamesFor(DatumRange targetRange, ProgressMonitor monitor) throws java.io.IOException
java.io.IOException
public static CacheTag getCacheTagFor(FileStorageModelNew fsm, DatumRange range, java.lang.String[] names)
public static CacheTag getCacheTagFor(FileStorageModelNew fsm, DatumRange range, java.io.File[] files)
public java.io.File[] getFilesFor(DatumRange targetRange) throws java.io.IOException
java.io.IOException
public DatumRange getRangeFor(java.lang.String name)
public boolean containsFile(java.io.File file)
public java.lang.String getNameFor(java.io.File file)
public java.io.File[] getFilesFor(DatumRange targetRange, ProgressMonitor monitor) throws java.io.IOException
java.io.IOException
public static FileStorageModelNew create(FileSystem root, java.lang.String template)
root
- FileSystem source of the files.template
- describes how filenames are constructed.
public static FileStorageModelNew create(FileSystem root, java.lang.String template, java.lang.String fieldName, TimeParser.FieldHandler fieldHandler)
root
- FileSystem source of the files.template
- describes how filenames are constructed.fieldName
- custom field namefieldHandler
- TimeParser.FieldHandler to call with the field contents.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |