org.kitesdk.data
Class Formats

java.lang.Object
  extended by org.kitesdk.data.Formats

public class Formats
extends Object

Contains constant definitions for the standard Format instances supported by the library. AVRO is the default format.

Since:
0.2.0

Field Summary
static Format AVRO
          AVRO: the Avro row-oriented format
static Format CSV
          CSV: comma-separated values (read-only).
static Format PARQUET
          PARQUET: the Parquet columnar format
 
Method Summary
static Format fromString(String formatName)
          Return a Format for the format name specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AVRO

public static final Format AVRO
AVRO: the Avro row-oriented format


PARQUET

public static final Format PARQUET
PARQUET: the Parquet columnar format


CSV

public static final Format CSV
CSV: comma-separated values (read-only).

Since:
0.9.0
Method Detail

fromString

public static Format fromString(String formatName)
Return a Format for the format name specified. If formatName is not a valid name, an IllegalArgumentException is thrown. Currently the formats avro, csv, and parquet are supported. Format names are case sensitive.

Returns:
an appropriate instance of Format
Throws:
IllegalArgumentException - if formatName is not a valid format.
Since:
0.9.0


Copyright © 2013–2014. All rights reserved.