public class IntDictionaryMap extends Object implements DictionaryMap
| Modifier and Type | Method and Description |
|---|---|
void |
append(String value) |
void |
appendMissing() |
byte[] |
asBytes(int rowNumber)
Returns the contents of the cell at rowNumber as a byte[]
|
String[] |
asObjectArray() |
Set<String> |
asSet() |
void |
clear() |
Table |
countByCategory(String columnName) |
int |
countMissing()
Returns the count of missing values in this column
|
int |
countOccurrences(String value) |
int |
countUnique() |
int |
firstIndexOf(String value) |
List<BooleanColumn> |
getDummies()
Returns a list of boolean columns suitable for use as dummy variables in, for example,
regression analysis, select a column of categorical data must be encoded as a list of columns,
such that each column represents a single category and indicates whether it is present (1) or
not present (0)
|
int |
getKeyForIndex(int rowIndex) |
String |
getValueForIndex(int rowIndex) |
String |
getValueForKey(int key) |
Selection |
isEqualTo(String string) |
boolean |
isMissing(int rowNumber) |
Iterator<String> |
iterator() |
DictionaryMap |
promoteYourself() |
Selection |
selectIsIn(Collection<String> strings) |
Selection |
selectIsIn(String... strings) |
void |
set(int rowIndex,
String stringValue) |
int |
size()
Returns the number of elements (a.k.a.
|
void |
sortAscending() |
void |
sortDescending() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasIntArray, isNotEqualTo, uniqueValuesAtpublic int size()
size in interface DictionaryMappublic String getValueForIndex(int rowIndex)
getValueForIndex in interface DictionaryMappublic int getKeyForIndex(int rowIndex)
getKeyForIndex in interface DictionaryMappublic void sortAscending()
sortAscending in interface DictionaryMappublic String getValueForKey(int key)
getValueForKey in interface DictionaryMappublic void sortDescending()
sortDescending in interface DictionaryMappublic int countOccurrences(String value)
countOccurrences in interface DictionaryMappublic Set<String> asSet()
asSet in interface DictionaryMappublic int firstIndexOf(String value)
firstIndexOf in interface DictionaryMappublic String[] asObjectArray()
asObjectArray in interface DictionaryMappublic int countUnique()
countUnique in interface DictionaryMappublic Selection selectIsIn(String... strings)
selectIsIn in interface DictionaryMappublic Selection selectIsIn(Collection<String> strings)
selectIsIn in interface DictionaryMappublic void append(String value) throws NoKeysAvailableException
append in interface DictionaryMapNoKeysAvailableExceptionpublic void set(int rowIndex,
String stringValue)
throws NoKeysAvailableException
set in interface DictionaryMapNoKeysAvailableExceptionpublic void clear()
clear in interface DictionaryMappublic Table countByCategory(String columnName)
countByCategory in interface DictionaryMappublic Selection isEqualTo(String string)
isEqualTo in interface DictionaryMappublic List<BooleanColumn> getDummies()
getDummies in interface DictionaryMapBooleanColumnpublic byte[] asBytes(int rowNumber)
asBytes in interface DictionaryMappublic int countMissing()
countMissing in interface DictionaryMappublic Iterator<String> iterator()
iterator in interface DictionaryMappublic void appendMissing()
appendMissing in interface DictionaryMappublic boolean isMissing(int rowNumber)
isMissing in interface DictionaryMappublic DictionaryMap promoteYourself()
promoteYourself in interface DictionaryMapCopyright © 2020. All rights reserved.