Iterable<C>, Comparator<C>, CategoricalColumn<String>, Column<C>, StringFilters, StringMapFunctions, StringReduceUtils, FilterSpec<C>, StringFilterSpec<C>StringColumn, TextColumnpublic abstract class AbstractStringColumn<C extends AbstractColumn<C,String>> extends AbstractColumn<C,String> implements CategoricalColumn<String>, StringFilters, StringMapFunctions, StringReduceUtils
DEFAULT_ARRAY_SIZE| Constructor | Description |
|---|---|
AbstractStringColumn(ColumnType type,
String name,
AbstractColumnParser<String> parser) |
Constructs a column of the given ColumnType, name, and parser
|
| Modifier and Type | Method | Description |
|---|---|---|
Column<String> |
append(Column<String> column,
int row) |
Appends the value at the given row in the given column to the bottom of this column and return
this column
|
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() |
Returns the current
StringColumnFormatter. |
String |
getString(int row) |
Returns a string representation of the value at the given row.
|
String |
getUnformattedString(int row) |
Returns a String representation of the value at index r, without any formatting applied
|
Column<String> |
set(int row,
Column<String> column,
int sourceRow) |
Sets the value at row to the value at sourceRow in the given column and return this column
|
void |
setPrintFormatter(StringColumnFormatter formatter) |
Sets an
StringColumnFormatter which will be used to format the display of data from
this column when it is printed (using, for example, Table:print()) and optionally when written
to a text file like a CSV. |
List<String> |
top(int n) |
Returns the largest ("top") n values in the column
|
asStringColumn, emptyCopy, filter, first, indexOf, inRange, last, map, max, min, name, parser, sampleN, sampleX, set, set, setName, setParser, sorted, subset, toString, typecountByCategoryallMatch, anyMatch, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asSet, asStringColumn, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, emptyCopy, equals, filter, first, indexOf, inRange, interpolate, isEmpty, isMissing, lag, last, lead, map, map, mapInto, max, max, min, min, name, noneMatch, parser, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, setMissing, setMissingTo, setName, setParser, size, sortAscending, sortDescending, sorted, subset, summary, title, type, unique, valueHash, wherecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongforEach, iterator, spliteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsString, endsWith, equalsIgnoreCase, equalsIgnoreCase, eval, eval, eval, eval, get, isAlpha, isAlphaNumeric, isEmptyString, isEqualTo, isEqualTo, isIn, isIn, isIn, isLongerThan, isLowerCase, isMissing, isNotEqualTo, isNotEqualTo, isNotIn, isNotIn, isNotIn, isNotMissing, isNumeric, isShorterThan, isUpperCase, lengthEquals, matchesRegex, startsWith, startsWithabbreviate, 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, upperCaseappendAll, appendAllpublic AbstractStringColumn(ColumnType type, String name, AbstractColumnParser<String> parser)
public void setPrintFormatter(StringColumnFormatter formatter)
StringColumnFormatter which will be used to format the display of data from
this column when it is printed (using, for example, Table:print()) and optionally when written
to a text file like a CSV.public StringColumnFormatter getPrintFormatter()
StringColumnFormatter.public String getString(int row)
public String getUnformattedString(int row)
getUnformattedString in interface Column<C extends AbstractColumn<C,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 Column<String> append(Column<String> column, int row)
public Column<String> set(int row, Column<String> column, int sourceRow)
public int byteSize()
public int compare(String o1, String o2)
compare in interface Comparator<C extends AbstractColumn<C,String>>Copyright © 2022. All rights reserved.