org.das2.fsm.FileStorageModelOld

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.


StartYear4


StartYear2


StartMonth


StartMonthName


StartDay


StartDoy


StartHour


StartMinute


StartSecond


EndYear4


EndYear2


EndMonth


EndMonthName


EndDay


EndDoy


EndHour


EndMinute


EndSecond


Ignore


calculateNameFor

calculateNameFor( Datum start ) → String

return the name that this time will fall into.

Parameters

start -

Returns:

the internal name of the file.

search for examples view on GitHub view source


getParentRegex

getParentRegex( String regex ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


setFileWidth

setFileWidth( int multiplier, char digitCode ) → void

specify each file's width when the implicit width is not correct. For example, files are stored with a tag for the starting day, but actually span a week. The width must be an integer multiple of one year, month, day, hour, minute, or second.

Parameters

digitCode - 'Y', 'm', 'd', 'H', etc.

Returns:

void (returns nothing)

search for examples view on GitHub view source