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, wait
asIntArray, isNotEqualTo, uniqueValuesAt
public int size()
size
in interface DictionaryMap
public String getValueForIndex(int rowIndex)
getValueForIndex
in interface DictionaryMap
public int getKeyForIndex(int rowIndex)
getKeyForIndex
in interface DictionaryMap
public void sortAscending()
sortAscending
in interface DictionaryMap
public String getValueForKey(int key)
getValueForKey
in interface DictionaryMap
public void sortDescending()
sortDescending
in interface DictionaryMap
public int countOccurrences(String value)
countOccurrences
in interface DictionaryMap
public Set<String> asSet()
asSet
in interface DictionaryMap
public int firstIndexOf(String value)
firstIndexOf
in interface DictionaryMap
public String[] asObjectArray()
asObjectArray
in interface DictionaryMap
public int countUnique()
countUnique
in interface DictionaryMap
public Selection selectIsIn(String... strings)
selectIsIn
in interface DictionaryMap
public Selection selectIsIn(Collection<String> strings)
selectIsIn
in interface DictionaryMap
public void append(String value) throws NoKeysAvailableException
append
in interface DictionaryMap
NoKeysAvailableException
public void set(int rowIndex, String stringValue) throws NoKeysAvailableException
set
in interface DictionaryMap
NoKeysAvailableException
public void clear()
clear
in interface DictionaryMap
public Table countByCategory(String columnName)
countByCategory
in interface DictionaryMap
public Selection isEqualTo(String string)
isEqualTo
in interface DictionaryMap
public List<BooleanColumn> getDummies()
getDummies
in interface DictionaryMap
BooleanColumn
public byte[] asBytes(int rowNumber)
asBytes
in interface DictionaryMap
public int countMissing()
countMissing
in interface DictionaryMap
public Iterator<String> iterator()
iterator
in interface DictionaryMap
public void appendMissing()
appendMissing
in interface DictionaryMap
public boolean isMissing(int rowNumber)
isMissing
in interface DictionaryMap
public DictionaryMap promoteYourself()
promoteYourself
in interface DictionaryMap
Copyright © 2019. All rights reserved.