public abstract class AbstractStringColumn<C extends AbstractColumn<C,String>> extends AbstractColumn<C,String> implements CategoricalColumn<String>, StringFilters, StringMapFunctions, StringReduceUtils
DEFAULT_ARRAY_SIZE
Constructor and Description |
---|
AbstractStringColumn(ColumnType type,
String name) |
Modifier and Type | Method and Description |
---|---|
Column<String> |
append(Column<String> column,
int row) |
List<String> |
bottom(int n)
Returns the smallest ("bottom") n values in the column
|
int |
byteSize()
Returns the width of a cell in this column, in bytes.
|
int |
compare(String o1,
String o2) |
StringColumnFormatter |
getPrintFormatter() |
String |
getString(int row)
Returns a string representation of the value at the given row.
|
String |
getUnformattedString(int row) |
Column<String> |
set(int row,
Column<String> column,
int sourceRow) |
void |
setPrintFormatter(StringColumnFormatter formatter) |
List<String> |
top(int n)
Returns the largest ("top") n values in the column
|
asStringColumn, emptyCopy, filter, first, inRange, last, map, max, min, name, sampleN, sampleX, set, set, setName, sorted, subset, toString, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
countByCategory
containsString, endsWith, equalsIgnoreCase, equalsIgnoreCase, eval, eval, eval, eval, get, isAlpha, isAlphaNumeric, isEmptyString, isEqualTo, isEqualTo, isIn, isIn, isLongerThan, isLowerCase, isMissing, isNotEqualTo, isNotEqualTo, isNotIn, isNotIn, isNotMissing, isNumeric, isShorterThan, isUpperCase, lengthEquals, matchesRegex, startsWith, startsWith
abbreviate, capitalize, commonPrefix, commonSuffix, concatenate, concatenate, countTokens, distance, format, join, length, lowerCase, padEnd, padStart, parseDouble, parseFloat, parseInt, repeat, replaceAll, replaceAll, replaceFirst, substring, substring, tokenizeAndRemoveDuplicates, tokenizeAndSort, tokenizeAndSort, tokens, trim, uniqueTokens, upperCase
appendAll, appendAll
allMatch, anyMatch, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asStringColumn, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, emptyCopy, filter, first, inRange, interpolate, isEmpty, isMissing, lag, last, lead, map, map, mapInto, max, max, min, min, name, noneMatch, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, setMissing, setMissingTo, setName, size, sortAscending, sortDescending, sorted, subset, summary, title, type, unique, where
forEach, iterator, spliterator
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public AbstractStringColumn(ColumnType type, String name)
public void setPrintFormatter(StringColumnFormatter formatter)
public StringColumnFormatter getPrintFormatter()
public String getString(int row)
Column
public String getUnformattedString(int row)
getUnformattedString
in interface Column<String>
public List<String> top(int n)
n
- The maximum number of records to return. The actual number will be smaller if n is
greater than the number of observations in the columnpublic List<String> bottom(int n)
n
- The maximum number of records to return. The actual number will be smaller if n is
greater than the number of observations in the columnpublic int byteSize()
Column
public int compare(String o1, String o2)
compare
in interface Comparator<String>
Copyright © 2020. All rights reserved.