org.kitesdk.data
Class Format

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

@Immutable
public class Format
extends Object

The data format used for encoding the data in a Dataset when stored in a DatasetRepository.

There are a small number of formats provided, the default is Formats.AVRO, which will be used when no format is explicitly configured.

Since:
0.2.0

Method Summary
 boolean equals(Object o)
           
 String getExtension()
          Get the extension for use in filenames.
 String getName()
          Get the format's name.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
Get the format's name.

Returns:
the name

getExtension

public String getExtension()
Get the extension for use in filenames. A dot is not included as a part of the extension.

Returns:
the extension

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013–2014. All rights reserved.