Spring for Apache Hadoop

org.springframework.data.hadoop.store.codec
Class DefaultCodecInfo

java.lang.Object
  extended by org.springframework.data.hadoop.store.codec.DefaultCodecInfo
All Implemented Interfaces:
CodecInfo

public class DefaultCodecInfo
extends java.lang.Object
implements CodecInfo

A default CodecInfo implementation. Contains a static information about the codec class and its ability being a splittable.

Author:
Janne Valkealahti

Constructor Summary
DefaultCodecInfo(java.lang.String clazz, boolean splittable, java.lang.String suffix)
          Instantiates a new default codec info.
 
Method Summary
 java.lang.String getCodecClass()
          Gets the fully qualified name of a codec class.
 java.lang.String getDefaultSuffix()
          Gets the default suffix.
 boolean isSplittable()
          Checks if codec is splittable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCodecInfo

public DefaultCodecInfo(java.lang.String clazz,
                        boolean splittable,
                        java.lang.String suffix)
Instantiates a new default codec info.

Parameters:
clazz - the clazz of a codec
splittable - the info if codec is splittable
Method Detail

isSplittable

public boolean isSplittable()
Description copied from interface: CodecInfo
Checks if codec is splittable.

Specified by:
isSplittable in interface CodecInfo
Returns:
true, if is splittable

getCodecClass

public java.lang.String getCodecClass()
Description copied from interface: CodecInfo
Gets the fully qualified name of a codec class.

Specified by:
getCodecClass in interface CodecInfo
Returns:
the codec class

getDefaultSuffix

public java.lang.String getDefaultSuffix()
Description copied from interface: CodecInfo
Gets the default suffix.

Specified by:
getDefaultSuffix in interface CodecInfo
Returns:
the default suffix

Spring for Apache Hadoop