T1
- the generic typeT2
- the generic typeabstract class MtasDataAdvanced<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>> extends MtasDataCollector<T1,T2> implements Serializable
Modifier and Type | Field and Description |
---|---|
protected T1[] |
advancedValueMaxList
The advanced value max list.
|
protected T1[] |
advancedValueMinList
The advanced value min list.
|
protected long[] |
advancedValueNList
The advanced value N list.
|
protected T1[] |
advancedValueSumList
The advanced value sum list.
|
protected T2[] |
advancedValueSumOfLogsList
The advanced value sum of logs list.
|
protected T1[] |
advancedValueSumOfSquaresList
The advanced value sum of squares list.
|
protected T1[] |
newAdvancedValueMaxList
The new advanced value max list.
|
protected T1[] |
newAdvancedValueMinList
The new advanced value min list.
|
protected long[] |
newAdvancedValueNList
The new advanced value N list.
|
protected T1[] |
newAdvancedValueSumList
The new advanced value sum list.
|
protected T2[] |
newAdvancedValueSumOfLogsList
The new advanced value sum of logs list.
|
protected T1[] |
newAdvancedValueSumOfSquaresList
The new advanced value sum of squares list.
|
protected MtasDataOperations<T1,T2> |
operations
The operations.
|
private static long |
serialVersionUID
The Constant serialVersionUID.
|
closed, collectorType, dataType, errorList, errorNumber, keyList, newCurrentExisting, newCurrentPosition, newErrorList, newErrorNumber, newKeyList, newKnownKeyFoundInSegment, newPosition, newSize, newSourceNumberList, newSubCollectorListNextLevel, newSubCollectorNextLevel, number, position, SEGMENT_BOUNDARY_ASC, SEGMENT_BOUNDARY_DESC, SEGMENT_KEY, SEGMENT_KEY_OR_NEW, SEGMENT_NEW, SEGMENT_POSSIBLE_KEY, SEGMENT_SORT_ASC, SEGMENT_SORT_DESC, segmentKeys, segmentKeyValueList, segmentName, segmentNumber, segmentRecomputeKeyList, segmentRegistration, segmentValueBoundary, segmentValuesBoundary, segmentValueTopList, segmentValueTopListLast, size, sortDirection, sortType, sourceNumberList, start, statsType, subCollectorListNextLevel, subCollectorNextLevel
Constructor and Description |
---|
MtasDataAdvanced(String collectorType,
String dataType,
SortedSet<String> statsItems,
String sortType,
String sortDirection,
Integer start,
Integer number,
String[] subCollectorTypes,
String[] subDataTypes,
String[] subStatsTypes,
SortedSet<String>[] subStatsItems,
String[] subSortTypes,
String[] subSortDirections,
Integer[] subStart,
Integer[] subNumber,
MtasDataOperations<T1,T2> operations,
String segmentRegistration,
String boundary)
Instantiates a new mtas data advanced.
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyFromNew()
Copy from new.
|
protected void |
copyToNew(int position,
int newPosition)
Copy to new.
|
void |
error(String error)
Error.
|
void |
error(String key,
String error)
Error.
|
protected void |
increaseNewListSize()
Increase new list size.
|
void |
initNewList(int maxNumberOfTerms)
Inits the new list.
|
void |
initNewList(int maxNumberOfTerms,
String segmentName,
int segmentNumber,
String boundary)
Inits the new list.
|
private void |
initNewListBasic()
Inits the new list basic.
|
void |
merge(MtasDataCollector<?,?> newDataCollector,
Map<MtasDataCollector<?,?>,MtasDataCollector<?,?>> map,
boolean increaseSourceNumber)
Merge.
|
void |
reduceToKeys(Set<String> keys)
Reduce to keys.
|
void |
reduceToSegmentKeys()
Reduce to segment keys.
|
protected void |
remapData(int[][] mapping)
Remap data.
|
protected void |
setError(int newPosition,
String error,
boolean currentExisting)
Sets the error.
|
protected void |
setValue(int newPosition,
T1[] values,
int number,
boolean currentExisting)
Sets the value.
|
private void |
setValue(int newPosition,
T1 valueSum,
T2 valueSumOfLogs,
T1 valueSumOfSquares,
T1 valueMin,
T1 valueMax,
long valueN,
boolean currentExisting)
Sets the value.
|
add, add, add, add, add, add, add, add, add, add, boundaryForSegment, boundaryForSegmentComputing, checkExistenceNecessaryKeys, close, closeNewList, closeSegmentKeyValueRegistration, compareWithBoundary, getCollectorType, getDataType, getItem, getKeyList, getResult, getSize, getStatsItems, getStatsType, hasSub, lastForComputingSegment, lastForComputingSegment, recomputeSegmentKeys, setError, setWithTotal, stringToBoundary, stringToBoundary, toString, validateSegmentBoundary, validateSegmentValue, validateSegmentValue, validateWithSegmentBoundary, withTotal
private static final long serialVersionUID
protected T1 extends Number & Comparable<T1>[] advancedValueSumList
protected T1 extends Number & Comparable<T1>[] newAdvancedValueSumList
protected T1 extends Number & Comparable<T1>[] advancedValueMaxList
protected T1 extends Number & Comparable<T1>[] newAdvancedValueMaxList
protected T1 extends Number & Comparable<T1>[] advancedValueMinList
protected T1 extends Number & Comparable<T1>[] newAdvancedValueMinList
protected T1 extends Number & Comparable<T1>[] advancedValueSumOfSquaresList
protected T1 extends Number & Comparable<T1>[] newAdvancedValueSumOfSquaresList
protected T2 extends Number & Comparable<T2>[] advancedValueSumOfLogsList
protected T2 extends Number & Comparable<T2>[] newAdvancedValueSumOfLogsList
protected long[] advancedValueNList
protected long[] newAdvancedValueNList
protected MtasDataOperations<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>> operations
public MtasDataAdvanced(String collectorType, String dataType, SortedSet<String> statsItems, String sortType, String sortDirection, Integer start, Integer number, String[] subCollectorTypes, String[] subDataTypes, String[] subStatsTypes, SortedSet<String>[] subStatsItems, String[] subSortTypes, String[] subSortDirections, Integer[] subStart, Integer[] subNumber, MtasDataOperations<T1,T2> operations, String segmentRegistration, String boundary) throws IOException
collectorType
- the collector typedataType
- the data typestatsItems
- the stats itemssortType
- the sort typesortDirection
- the sort directionstart
- the startnumber
- the numbersubCollectorTypes
- the sub collector typessubDataTypes
- the sub data typessubStatsTypes
- the sub stats typessubStatsItems
- the sub stats itemssubSortTypes
- the sub sort typessubSortDirections
- the sub sort directionssubStart
- the sub startsubNumber
- the sub numberoperations
- the operationssegmentRegistration
- the segment registrationboundary
- the boundaryIOException
- Signals that an I/O exception has occurred.public final void error(String error) throws IOException
MtasDataCollector
error
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
error
- the errorIOException
- Signals that an I/O exception has occurred.public final void error(String key, String error) throws IOException
MtasDataCollector
error
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
key
- the keyerror
- the errorIOException
- Signals that an I/O exception has occurred.protected void setError(int newPosition, String error, boolean currentExisting)
newPosition
- the new positionerror
- the errorcurrentExisting
- the current existingprotected final void increaseNewListSize() throws IOException
MtasDataCollector
increaseNewListSize
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
IOException
- Signals that an I/O exception has occurred.public void reduceToSegmentKeys()
MtasDataCollector
reduceToSegmentKeys
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
public void reduceToKeys(Set<String> keys)
MtasDataCollector
reduceToKeys
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
keys
- the keysprotected void copyToNew(int position, int newPosition)
MtasDataCollector
copyToNew
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
position
- the positionnewPosition
- the new positionprotected void copyFromNew()
MtasDataCollector
copyFromNew
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
protected void setValue(int newPosition, T1[] values, int number, boolean currentExisting)
newPosition
- the new positionvalues
- the valuesnumber
- the numbercurrentExisting
- the current existingprivate void setValue(int newPosition, T1 valueSum, T2 valueSumOfLogs, T1 valueSumOfSquares, T1 valueMin, T1 valueMax, long valueN, boolean currentExisting)
newPosition
- the new positionvalueSum
- the value sumvalueSumOfLogs
- the value sum of logsvalueSumOfSquares
- the value sum of squaresvalueMin
- the value minvalueMax
- the value maxvalueN
- the value NcurrentExisting
- the current existingprotected void remapData(int[][] mapping) throws IOException
MtasDataCollector
remapData
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
mapping
- the mappingIOException
- Signals that an I/O exception has occurred.public void merge(MtasDataCollector<?,?> newDataCollector, Map<MtasDataCollector<?,?>,MtasDataCollector<?,?>> map, boolean increaseSourceNumber) throws IOException
MtasDataCollector
merge
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
newDataCollector
- the new data collectormap
- the mapincreaseSourceNumber
- the increase source numberIOException
- Signals that an I/O exception has occurred.public final void initNewList(int maxNumberOfTerms) throws IOException
MtasDataCollector
initNewList
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
maxNumberOfTerms
- the max number of termsIOException
- Signals that an I/O exception has occurred.public final void initNewList(int maxNumberOfTerms, String segmentName, int segmentNumber, String boundary) throws IOException
MtasDataCollector
initNewList
in class MtasDataCollector<T1 extends Number & Comparable<T1>,T2 extends Number & Comparable<T2>>
maxNumberOfTerms
- the max number of termssegmentName
- the segment namesegmentNumber
- the segment numberboundary
- the boundaryIOException
- Signals that an I/O exception has occurred.private void initNewListBasic()
Copyright © 2018 Meertens Institute. All rights reserved.