Iterable<C>
, Comparator<C>
, CategoricalColumn<String>
, Column<C>
, StringFilters
, StringMapFunctions
, StringReduceUtils
, FilterSpec<C>
, StringFilterSpec<C>
StringColumn
, TextColumn
public 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) |
Modifier and Type | Method | 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, indexOf, inRange, last, map, max, min, name, parser, sampleN, sampleX, set, set, setName, setParser, sorted, subset, toString, type
countByCategory
allMatch, anyMatch, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asStringColumn, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, emptyCopy, 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, where
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
forEach, iterator, spliterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public AbstractStringColumn(ColumnType type, String name, AbstractColumnParser<String> parser)
public void setPrintFormatter(StringColumnFormatter formatter)
public StringColumnFormatter getPrintFormatter()
public String getString(int row)
Column
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 int byteSize()
Column
public int compare(String o1, String o2)
compare
in interface Comparator<C extends AbstractColumn<C,String>>
Copyright © 2021. All rights reserved.