@groovy.transform.CompileStatic class BidsChannelData extends java.lang.Object
Container for BIDS channel data assembled by the set handlers.
Accumulates per-suffix data maps, associated file paths, and loop-over entity
values during the grouping phase. toChannelTuple(List) serialises the
container into the [groupingKey, enrichedData] tuple format consumed by
nfneuro.plugin.channel.BidsHandler before flattening.
The flat output emitted by Channel.fromBIDS() is built from this
structure by converting string paths to java.nio.file.Path objects and
placing suffix data maps at the top level alongside a meta map of
entity values.
| Type | Name and description |
|---|---|
java.lang.String |
bidsParentDir |
java.util.Map<java.lang.String, java.lang.Object> |
data |
java.util.Map<java.lang.String, java.lang.String> |
entities |
java.util.List<java.lang.String> |
filePaths |
| Constructor and description |
|---|
BidsChannelData()Construct an empty BidsChannelData container. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addEntity(java.lang.String entityName, java.lang.String entityValue)Add entity value |
|
void |
addFilePath(java.lang.String filePath)Add file path |
|
void |
addFilePaths(java.util.List<java.lang.String> paths)Add multiple file paths |
|
void |
addSuffixData(java.lang.String suffix, java.lang.Object suffixData)Add suffix data |
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getEntity(java.lang.String entityName)Get entity value |
|
java.lang.Object |
getSuffixData(java.lang.String suffix)Get suffix data |
|
java.util.List<java.lang.String> |
getSuffixes()Get all suffixes in this channel data |
|
boolean |
hasEntity(java.lang.String entityName)Check if entity exists |
|
boolean |
hasSuffix(java.lang.String suffix)Check if suffix exists in data |
|
int |
hashCode() |
|
boolean |
isEmpty()Check if channel data is empty |
|
boolean |
isValid()Validate that channel data has required content |
|
java.lang.Object |
toChannelTuple(java.util.List<java.lang.String> loopOverEntities)Convert to channel tuple format |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait() |
Add entity value
entityName - Entity nameentityValue - Entity valueAdd file path
filePath - File path to addAdd multiple file paths
paths - List of file pathsAdd suffix data
suffix - BIDS suffixsuffixData - Data for this suffix (can be String path, Map, or List)Get entity value
entityName - Entity nameGet suffix data
suffix - BIDS suffixGet all suffixes in this channel data
Check if entity exists
entityName - Entity nameCheck if suffix exists in data
suffix - BIDS suffixCheck if channel data is empty
Validate that channel data has required content
Convert to channel tuple format
loopOverEntities - Entities to use for grouping key (also determines which entities appear in enriched data)Groovy Documentation