Package | Description |
---|---|
org.datavec.api.transform.schema |
Modifier and Type | Class and Description |
---|---|
static class |
SequenceSchema.Builder |
Modifier and Type | Field and Description |
---|---|
protected Schema.Builder |
InferredSchema.schemaBuilder |
Modifier and Type | Method and Description |
---|---|
Schema.Builder |
Schema.Builder.addColumn(ColumnMetaData metaData)
Add a column
|
Schema.Builder |
Schema.Builder.addColumnBoolean(String columnName)
Add a boolean (binary true/false) column
|
Schema.Builder |
Schema.Builder.addColumnCategorical(String name,
List<String> stateNames)
Add a Categorical column, with the specified state names
|
Schema.Builder |
Schema.Builder.addColumnCategorical(String name,
String... stateNames)
Add a Categorical column, with the specified state names
|
Schema.Builder |
Schema.Builder.addColumnDouble(String name)
Add a Double column with no restrictions on the allowable values, except for no NaN/infinite values allowed
|
Schema.Builder |
Schema.Builder.addColumnDouble(String name,
Double minAllowedValue,
Double maxAllowedValue)
Add a Double column with the specified restrictions (and no NaN/Infinite values allowed)
|
Schema.Builder |
Schema.Builder.addColumnDouble(String name,
Double minAllowedValue,
Double maxAllowedValue,
boolean allowNaN,
boolean allowInfinite)
Add a Double column with the specified restrictions
|
Schema.Builder |
Schema.Builder.addColumnFloat(String name)
Add a Float column with no restrictions on the allowable values, except for no NaN/infinite values allowed
|
Schema.Builder |
Schema.Builder.addColumnFloat(String name,
Float minAllowedValue,
Float maxAllowedValue)
Add a Float column with the specified restrictions (and no NaN/Infinite values allowed)
|
Schema.Builder |
Schema.Builder.addColumnFloat(String name,
Float minAllowedValue,
Float maxAllowedValue,
boolean allowNaN,
boolean allowInfinite)
Add a Float column with the specified restrictions
|
Schema.Builder |
Schema.Builder.addColumnInteger(String name)
Add an Integer column with no restrictions on the allowable values
|
Schema.Builder |
Schema.Builder.addColumnInteger(String name,
Integer minAllowedValue,
Integer maxAllowedValue)
Add an Integer column with the specified min/max allowable values
|
Schema.Builder |
Schema.Builder.addColumnLong(String name)
Add a Long column, with no restrictions on the min/max values
|
Schema.Builder |
Schema.Builder.addColumnLong(String name,
Long minAllowedValue,
Long maxAllowedValue)
Add a Long column with the specified min/max allowable values
|
Schema.Builder |
Schema.Builder.addColumnNDArray(String columnName,
long[] shape)
Add a NDArray column
|
Schema.Builder |
Schema.Builder.addColumnsDouble(String... columnNames)
Add multiple Double columns with no restrictions on the allowable values of the columns (other than no NaN/Infinite)
|
Schema.Builder |
Schema.Builder.addColumnsDouble(String pattern,
int minIdxInclusive,
int maxIdxInclusive)
A convenience method for adding multiple Double columns.
|
Schema.Builder |
Schema.Builder.addColumnsDouble(String pattern,
int minIdxInclusive,
int maxIdxInclusive,
Double minAllowedValue,
Double maxAllowedValue,
boolean allowNaN,
boolean allowInfinite)
A convenience method for adding multiple Double columns, with additional restrictions that apply to all columns
For example, to add columns "myDoubleCol_0", "myDoubleCol_1", "myDoubleCol_2", use
addColumnsDouble("myDoubleCol_%d",0,2,null,null,false,false) |
Schema.Builder |
Schema.Builder.addColumnsFloat(String... columnNames)
Add multiple Float columns with no restrictions on the allowable values of the columns (other than no NaN/Infinite)
|
Schema.Builder |
Schema.Builder.addColumnsFloat(String pattern,
int minIdxInclusive,
int maxIdxInclusive)
A convenience method for adding multiple Float columns.
|
Schema.Builder |
Schema.Builder.addColumnsFloat(String pattern,
int minIdxInclusive,
int maxIdxInclusive,
Float minAllowedValue,
Float maxAllowedValue,
boolean allowNaN,
boolean allowInfinite)
A convenience method for adding multiple Float columns, with additional restrictions that apply to all columns
For example, to add columns "myFloatCol_0", "myFloatCol_1", "myFloatCol_2", use
addColumnsFloat("myFloatCol_%d",0,2,null,null,false,false) |
Schema.Builder |
Schema.Builder.addColumnsInteger(String... names)
Add multiple Integer columns with no restrictions on the min/max allowable values
|
Schema.Builder |
Schema.Builder.addColumnsInteger(String pattern,
int minIdxInclusive,
int maxIdxInclusive)
A convenience method for adding multiple Integer columns.
|
Schema.Builder |
Schema.Builder.addColumnsInteger(String pattern,
int minIdxInclusive,
int maxIdxInclusive,
Integer minAllowedValue,
Integer maxAllowedValue)
A convenience method for adding multiple Integer columns.
|
Schema.Builder |
Schema.Builder.addColumnsLong(String... names)
Add multiple Long columns, with no restrictions on the allowable values
|
Schema.Builder |
Schema.Builder.addColumnsLong(String pattern,
int minIdxInclusive,
int maxIdxInclusive)
A convenience method for adding multiple Long columns.
|
Schema.Builder |
Schema.Builder.addColumnsLong(String pattern,
int minIdxInclusive,
int maxIdxInclusive,
Long minAllowedValue,
Long maxAllowedValue)
A convenience method for adding multiple Long columns.
|
Schema.Builder |
Schema.Builder.addColumnsString(String... columnNames)
Add multiple String columns with no restrictions on the allowable values
|
Schema.Builder |
Schema.Builder.addColumnsString(String pattern,
int minIdxInclusive,
int maxIdxInclusive)
A convenience method for adding multiple numbered String columns.
|
Schema.Builder |
Schema.Builder.addColumnsString(String pattern,
int minIdxInclusive,
int maxIdxInclusive,
String regex,
Integer minAllowedLength,
Integer maxAllowedLength)
A convenience method for adding multiple numbered String columns.
|
Schema.Builder |
Schema.Builder.addColumnString(String name)
Add a String column with no restrictions on the allowable values.
|
Schema.Builder |
Schema.Builder.addColumnString(String name,
String regex,
Integer minAllowableLength,
Integer maxAllowableLength)
Add a String column with the specified restrictions
|
Schema.Builder |
Schema.Builder.addColumnTime(String columnName,
org.joda.time.DateTimeZone timeZone)
Add a Time column with no restrictions on the min/max allowable times
NOTE: Time columns are represented by LONG (epoch millisecond) values.
|
Schema.Builder |
Schema.Builder.addColumnTime(String columnName,
org.joda.time.DateTimeZone timeZone,
Long minValidValue,
Long maxValidValue)
Add a Time column with the specified restrictions
NOTE: Time columns are represented by LONG (epoch millisecond) values.
|
Schema.Builder |
Schema.Builder.addColumnTime(String columnName,
TimeZone timeZone)
Add a Time column with no restrictions on the min/max allowable times
NOTE: Time columns are represented by LONG (epoch millisecond) values.
|
Constructor and Description |
---|
Schema(Schema.Builder builder) |
Copyright © 2022. All rights reserved.