public final class RecordFormats extends Object
RecordFormat objects given the name of a format. Names are first checked against standard names like
"CSV" or "TSV". If they are not a standard name, they are interpreted as fully qualified class names.| Constructor and Description |
|---|
RecordFormats() |
| Modifier and Type | Method and Description |
|---|---|
static <FROM,TO> co.cask.cdap.api.data.format.RecordFormat<FROM,TO> |
createInitializedFormat(co.cask.cdap.api.data.format.FormatSpecification spec)
Create an initialized record format for the given format specification.
|
public static <FROM,TO> co.cask.cdap.api.data.format.RecordFormat<FROM,TO> createInitializedFormat(co.cask.cdap.api.data.format.FormatSpecification spec) throws IllegalAccessException, InstantiationException, ClassNotFoundException, co.cask.cdap.api.data.schema.UnsupportedTypeException
DelimitedStringsRecordFormat, with a comma as the delimiter,
whereas "TSV" will map to the DelimitedStringsRecordFormat, with a tab as the delimiter.
If the name is not a standard name, it is interpreted as a class name.FROM - Type of underlying object the format readsTO - Type of object the format reads the underlying object intospec - the specification for the format to create and initializeRecordFormat based on the given nameIllegalAccessException - if there was an illegal access when instantiating the record formatInstantiationException - if there was an exception instantiating the record formatClassNotFoundException - if the record format class could not be foundco.cask.cdap.api.data.schema.UnsupportedTypeException - if the specification is not supported by the formatCopyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.