public class ChangeAttributeId extends Object
Constructor and Description |
---|
ChangeAttributeId() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Map<Integer,Integer>> |
assignNewAttributeIds(AbstractSpimData<?> spimData,
Map<String,Set<Integer>> idsInUse)
For the specified
spimData data set, re-assign attribute id's
that are already in use. |
static void |
changeAttributeId(AbstractSpimData<?> spimData,
String attributeName,
int oldAttributeId,
int newAttributeId)
TODO
|
public static Map<String,Map<Integer,Integer>> assignNewAttributeIds(AbstractSpimData<?> spimData, Map<String,Set<Integer>> idsInUse)
spimData
data set, re-assign attribute id's
that are already in use. As a result, attribute ids in spimData
are updated and the set of used ids idsInUse
is updated.spimData
- dataset whose attributes to make unique. Will be updated as a
result of this method.idsInUse
- Maps attribute name to set of ids already used for that
attribute. Will be updated as a result of this method.spimData
had the old id before calling this
method, and have the new id after calling this method).public static void changeAttributeId(AbstractSpimData<?> spimData, String attributeName, int oldAttributeId, int newAttributeId)
spimData
- attributeName
- oldAttributeId
- newAttributeId
- Copyright © 2015–2021 Fiji. All rights reserved.