Example usage for org.apache.commons.io.input SwappedDataInputStream subclass-usage

List of usage examples for org.apache.commons.io.input SwappedDataInputStream subclass-usage

Introduction

In this page you can find the example usage for org.apache.commons.io.input SwappedDataInputStream subclass-usage.

Usage

From source file org.apache.hadoop.hive.serde2.teradata.TeradataBinaryDataInputStream.java

/**
 * The TeradataBinaryDataInputStream is used to handle the Teradata binary format input for record.
 * Since the TD binary format uses little-endian to handle the SHORT, INT, LONG, DOUBLE and etc.
 * while the Hadoop uses big-endian,
 * We extend SwappedDataInputStream to handle these types and extend to handle the Teradata
 * specific types like VARCHAR, CHAR, TIMESTAMP, DATE...