public class Column extends Bean
SERIALIZED_CLASS_NAME, TYPE
XML_SERIALIZED_CLASS_NAME
Modifier | Constructor and Description |
---|---|
protected |
Column() |
|
Column(String name,
int index) |
|
Column(String name,
int index,
Map<Object,LongAdder> uniqueValues) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecord
newInstanceFromJson
forEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXml
addExceptionProperties, contributeExceptionProperties, contributeExceptionProperties, exception, exception, exception
protected Column()
public Column(String name, int index)
public String getName()
public int getIndex()
public Column setIndex(int index)
public long getValueCount()
public Column setValueCount(long valueCount)
public int getUniqueValueCount()
public long getNullCount()
public Column setNullCount(long nullCount)
public Column incNullCount()
public long getNonNullCount()
public long getNonNullNonBlankCount()
public long getBlankCount()
public Column setBlankCount(long blankCount)
public Column incBlankCount()
public long getInferredTextualValueCount()
public long getInferredNumericValueCount()
public long getInferredTemporalValueCount()
public long getInferredBooleanValueCount()
public long getInferredUuidValueCount()
public long getArrayValueCount()
public int getMinimumArrayElements()
public int getMaximumArrayElements()
public boolean isTextual()
public boolean isNumeric()
public boolean isTemporal()
public boolean isBoolean()
public boolean isUuid()
public boolean isArray()
public String getInferredTypeName()
public int getMinimumLength()
public Column setMinimumLength(int minimumLength)
public int getMaximumLength()
public Column setMaximumLength(int maximumLength)
public long getLengthSum()
public Column setLengthSum(long lengthSum)
public long getAverageLength()
public FieldType getInferredFieldType()
For example, if a column contains 10 integer values and 9 boolean values,
the inferred field type for that column will be FieldType.INT
.
public int getFieldTypeCount()
public FieldType getFieldType()
public ConcurrentSkipListMap<FieldType,LongAdder> getNullValueFieldTypes()
public Column setNullValueFieldTypes(ConcurrentSkipListMap<FieldType,LongAdder> nullValueFieldTypes)
public FieldType getBestFitFieldType()
public Map<DateTimePattern,LongAdder> getTemporalPatterns()
public Column setTemporalPatterns(Map<DateTimePattern,LongAdder> temporalPatterns)
public int getTemporalPatternCount()
public Column setTemporalFieldTypes(Map<FieldType,LongAdder> temporalFieldTypes)
public int getTemporalFieldTypeCount()
public NumberDescriptor getNumberDescriptor()
public Column setNumberDescriptor(NumberDescriptor numberDescriptor)
public NumberDescriptor getBigNumberDescriptor()
public Column setBigNumberDescriptor(NumberDescriptor bigNumberDescriptor)
public String getSampleValue()
public static boolean isNumber(String string)
public static boolean isBoolean(String s)
public Record toRecord()
toRecord
in interface RecordSerializable
toRecord
in class Bean
public Column fromRecord(Record source)
RecordSerializable
this
(for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord
in interface RecordSerializable
fromRecord
in class Bean
public DataException addExceptionProperties(DataException exception)
DataExceptionContributor
DataException
. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.addExceptionProperties
in interface DataExceptionContributor
addExceptionProperties
in class Bean
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.