public class FlexibleAggregatorAttributeCombinations
extends java.lang.Object
Constructor and Description |
---|
FlexibleAggregatorAttributeCombinations(LoggerIfc theLogger)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendList(DCFieldContainer source,
DCFieldContainer dest,
FieldKey attributeId)
This will append the new list onto the old list.
|
void |
appendLists(NAR source,
NAR dest,
java.util.List attributeIds)
This will append the elements from the new list onto the old list
for each of the attributes specified.
|
void |
appendListsWithoutRepeat(NAR source,
NAR dest,
java.util.List attributeIds)
This will append the elements from the new list onto the old list
for each of the attributes specified.
|
void |
appendListWithoutRepeat(DCFieldContainer source,
DCFieldContainer dest,
FieldKey attributeId)
This will append the new list onto the old list.
|
boolean |
compareMapEquivalence(java.util.Map map1,
java.util.Map map2)
This will compare to ensure each map contains the same elements in the same order.
|
int |
getDayOfYear(byte[] byteDate)
Will calculate the day of the year for the input byte array.
|
int |
getPreviousDayOfYear(byte[] byteDate)
Will calculate the day of the year, and return the day before.
|
java.util.Calendar |
getTimeFromBCD(byte[] bcdBytes) |
void |
keepMaxAttribute(DCFieldContainer source,
DCFieldContainer dest,
FieldKey attributeId)
This will put the attribute from the source into the dest only if
the source is greater, or the dest doesn't exist.
|
void |
keepMaxAttributes(NAR source,
NAR dest,
java.util.List attrList)
This will go through all the attributes and keep the larger of the two.
|
void |
keepMinAttribute(DCFieldContainer source,
DCFieldContainer dest,
FieldKey attributeId)
This will put the attribute from the source into the dest only if
the source is smaller, or the dest doesn't exist.
|
void |
keepMinAttributes(NAR source,
NAR dest,
java.util.List attrList)
This will go through all the attributes and keep the smaller of the two.
|
void |
mapAttributes(NAR source,
NAR dest,
java.util.List sourceAttributeIds,
java.util.List destAttributeIds)
This will replace the specified attributes in the dest with those from
the source, unless the source doesn't exist.
|
void |
removeAttributes(NAR record,
java.util.List attrList)
This will remove the specified attributes from the NAR
|
void |
replaceAttributes(NAR source,
NAR dest,
java.util.List attributeIds)
This will replace the specified attributes in the dest with those from
the source, unless the source doesn't exist.
|
void |
replaceAttributesWithDelete(NAR source,
NAR dest,
java.util.List attributeIds)
This will replace the specified attributes in the dest with those from
the source.
|
void |
stringConcat(DCFieldContainer source,
DCFieldContainer dest,
java.lang.String separator,
FieldKey attributeId)
This will append the strings for the specified attribute.
|
void |
stringConcat(DCFieldContainer source,
DCFieldContainer dest,
java.lang.String separator,
java.util.List attributeIds)
This will concatenate the strings for the specified attributes.
|
boolean |
sumAttribute(DCFieldContainer source,
DCFieldContainer dest,
FieldKey id)
Performs summation of the indicated attribute.
|
boolean |
sumAttributes(NAR source,
NAR dest,
java.util.List attrStringList,
boolean checkOverflow)
Performs summation of all the indicated attributes.
|
boolean |
sumValueAttribute(long sourceValue,
DCFieldContainer dest,
FieldKey id)
Performs summation of the indicated attribute and the value.
|
boolean |
sumValueAttributes(long sourceValue,
NAR dest,
java.util.List attrStringList,
boolean checkOverflow)
Performs a sum of the specified attributes and the value passed in.
|
public FlexibleAggregatorAttributeCombinations(LoggerIfc theLogger)
public boolean sumAttributes(NAR source, NAR dest, java.util.List attrStringList, boolean checkOverflow)
public boolean sumAttribute(DCFieldContainer source, DCFieldContainer dest, FieldKey id)
public void keepMaxAttributes(NAR source, NAR dest, java.util.List attrList)
public void keepMaxAttribute(DCFieldContainer source, DCFieldContainer dest, FieldKey attributeId)
public void keepMinAttributes(NAR source, NAR dest, java.util.List attrList)
public void mapAttributes(NAR source, NAR dest, java.util.List sourceAttributeIds, java.util.List destAttributeIds)
public void keepMinAttribute(DCFieldContainer source, DCFieldContainer dest, FieldKey attributeId)
public void appendLists(NAR source, NAR dest, java.util.List attributeIds)
public void appendList(DCFieldContainer source, DCFieldContainer dest, FieldKey attributeId)
public void appendListsWithoutRepeat(NAR source, NAR dest, java.util.List attributeIds)
public void appendListWithoutRepeat(DCFieldContainer source, DCFieldContainer dest, FieldKey attributeId)
public boolean compareMapEquivalence(java.util.Map map1, java.util.Map map2)
public boolean sumValueAttributes(long sourceValue, NAR dest, java.util.List attrStringList, boolean checkOverflow)
public boolean sumValueAttribute(long sourceValue, DCFieldContainer dest, FieldKey id)
public void stringConcat(DCFieldContainer source, DCFieldContainer dest, java.lang.String separator, java.util.List attributeIds)
public void stringConcat(DCFieldContainer source, DCFieldContainer dest, java.lang.String separator, FieldKey attributeId)
public void replaceAttributes(NAR source, NAR dest, java.util.List attributeIds)
public void replaceAttributesWithDelete(NAR source, NAR dest, java.util.List attributeIds)
public int getDayOfYear(byte[] byteDate)
public int getPreviousDayOfYear(byte[] byteDate)
public java.util.Calendar getTimeFromBCD(byte[] bcdBytes)
public void removeAttributes(NAR record, java.util.List attrList)