TypedBytesWritableOutput.writeByte
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.hadoop.hive.contrib.util.typedbytes.TypedBytesWritableOutput.writeByte (Showing top 10 results out of 315)

  • Common ways to obtain TypedBytesWritableOutput
private void myMethod () {
TypedBytesWritableOutput t =
  • DataOutput dout;new TypedBytesWritableOutput(dout)
  • ThreadLocal threadLocal;(TypedBytesWritableOutput) threadLocal.get()
  • Smart code suggestions by Codota
}
origin: apache/hive

private void write(int pos, Writable inpw) throws IOException {
 String typ = columnTypes.get(pos);
 Writable w = (Writable) converters.get(pos).convert(inpw);
 if (typ.equalsIgnoreCase(serdeConstants.BOOLEAN_TYPE_NAME)) {
  tbOut.writeBoolean((BooleanWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.TINYINT_TYPE_NAME)) {
  tbOut.writeByte((ByteWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.SMALLINT_TYPE_NAME)) {
  tbOut.writeShort((ShortWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.INT_TYPE_NAME)) {
  tbOut.writeInt((IntWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.BIGINT_TYPE_NAME)) {
  tbOut.writeLong((LongWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.FLOAT_TYPE_NAME)) {
  tbOut.writeFloat((FloatWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.DOUBLE_TYPE_NAME)) {
  tbOut.writeDouble((DoubleWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.STRING_TYPE_NAME)) {
  tbOut.writeText((Text) w);
 } else {
  assert false;
 }
}
origin: apache/hive

 writeBytes((BytesWritable) w);
} else if (w instanceof ByteWritable) {
 writeByte((ByteWritable) w);
} else if (w instanceof BooleanWritable) {
 writeBoolean((BooleanWritable) w);
origin: org.spark-project.hive/hive-contrib

 writeBytes((BytesWritable) w);
} else if (w instanceof ByteWritable) {
 writeByte((ByteWritable) w);
} else if (w instanceof BooleanWritable) {
 writeBoolean((BooleanWritable) w);
origin: edu.berkeley.cs.shark/hive-contrib

private void write(int pos, Writable inpw) throws IOException {
 String typ = columnTypes.get(pos);
 Writable w = (Writable) converters.get(pos).convert(inpw);
 if (typ.equalsIgnoreCase(serdeConstants.BOOLEAN_TYPE_NAME)) {
  tbOut.writeBoolean((BooleanWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.TINYINT_TYPE_NAME)) {
  tbOut.writeByte((ByteWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.SMALLINT_TYPE_NAME)) {
  tbOut.writeShort((ShortWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.INT_TYPE_NAME)) {
  tbOut.writeInt((IntWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.BIGINT_TYPE_NAME)) {
  tbOut.writeLong((LongWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.FLOAT_TYPE_NAME)) {
  tbOut.writeFloat((FloatWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.DOUBLE_TYPE_NAME)) {
  tbOut.writeDouble((DoubleWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.STRING_TYPE_NAME)) {
  tbOut.writeText((Text) w);
 } else {
  assert false;
 }
}
origin: com.github.hyukjinkwon/hive-contrib

 writeBytes((BytesWritable) w);
} else if (w instanceof ByteWritable) {
 writeByte((ByteWritable) w);
} else if (w instanceof BooleanWritable) {
 writeBoolean((BooleanWritable) w);
origin: org.spark-project.hive/hive-contrib

private void write(int pos, Writable inpw) throws IOException {
 String typ = columnTypes.get(pos);
 Writable w = (Writable) converters.get(pos).convert(inpw);
 if (typ.equalsIgnoreCase(serdeConstants.BOOLEAN_TYPE_NAME)) {
  tbOut.writeBoolean((BooleanWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.TINYINT_TYPE_NAME)) {
  tbOut.writeByte((ByteWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.SMALLINT_TYPE_NAME)) {
  tbOut.writeShort((ShortWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.INT_TYPE_NAME)) {
  tbOut.writeInt((IntWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.BIGINT_TYPE_NAME)) {
  tbOut.writeLong((LongWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.FLOAT_TYPE_NAME)) {
  tbOut.writeFloat((FloatWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.DOUBLE_TYPE_NAME)) {
  tbOut.writeDouble((DoubleWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.STRING_TYPE_NAME)) {
  tbOut.writeText((Text) w);
 } else {
  assert false;
 }
}
origin: org.apache.hadoop.hive/hive-contrib

 writeBytes((BytesWritable) w);
} else if (w instanceof ByteWritable) {
 writeByte((ByteWritable) w);
} else if (w instanceof BooleanWritable) {
 writeBoolean((BooleanWritable) w);
origin: org.apache.hadoop.hive/hive-contrib

private void write(int pos, Writable inpw) throws IOException {
 String typ = columnTypes.get(pos);
 Writable w = (Writable) converters.get(pos).convert(inpw);
 if (typ.equalsIgnoreCase(Constants.BOOLEAN_TYPE_NAME)) {
  tbOut.writeBoolean((BooleanWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.TINYINT_TYPE_NAME)) {
  tbOut.writeByte((ByteWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.SMALLINT_TYPE_NAME)) {
  tbOut.writeShort((ShortWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.INT_TYPE_NAME)) {
  tbOut.writeInt((IntWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.BIGINT_TYPE_NAME)) {
  tbOut.writeLong((LongWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.FLOAT_TYPE_NAME)) {
  tbOut.writeFloat((FloatWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.DOUBLE_TYPE_NAME)) {
  tbOut.writeDouble((DoubleWritable) w);
 } else if (typ.equalsIgnoreCase(Constants.STRING_TYPE_NAME)) {
  tbOut.writeText((Text) w);
 } else {
  assert false;
 }
}
origin: edu.berkeley.cs.shark/hive-contrib

 writeBytes((BytesWritable) w);
} else if (w instanceof ByteWritable) {
 writeByte((ByteWritable) w);
} else if (w instanceof BooleanWritable) {
 writeBoolean((BooleanWritable) w);
origin: com.github.hyukjinkwon/hive-contrib

private void write(int pos, Writable inpw) throws IOException {
 String typ = columnTypes.get(pos);
 Writable w = (Writable) converters.get(pos).convert(inpw);
 if (typ.equalsIgnoreCase(serdeConstants.BOOLEAN_TYPE_NAME)) {
  tbOut.writeBoolean((BooleanWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.TINYINT_TYPE_NAME)) {
  tbOut.writeByte((ByteWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.SMALLINT_TYPE_NAME)) {
  tbOut.writeShort((ShortWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.INT_TYPE_NAME)) {
  tbOut.writeInt((IntWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.BIGINT_TYPE_NAME)) {
  tbOut.writeLong((LongWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.FLOAT_TYPE_NAME)) {
  tbOut.writeFloat((FloatWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.DOUBLE_TYPE_NAME)) {
  tbOut.writeDouble((DoubleWritable) w);
 } else if (typ.equalsIgnoreCase(serdeConstants.STRING_TYPE_NAME)) {
  tbOut.writeText((Text) w);
 } else {
  assert false;
 }
}
org.apache.hadoop.hive.contrib.util.typedbytesTypedBytesWritableOutputwriteByte

Popular methods of TypedBytesWritableOutput

  • <init>
  • get
    Get a thread-local typed bytes writable input for the supplied TypedBytesOutput.
  • setTypedBytesOutput
  • write
  • writeArray
  • writeBoolean
  • writeBytes
  • writeDouble
  • writeEndOfRecord
  • writeFloat
  • writeInt
  • writeLong
  • writeInt,
  • writeLong,
  • writeMap,
  • writeNull,
  • writeShort,
  • writeSortedMap,
  • writeText,
  • writeTypedBytes,
  • writeVInt

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • String (java.lang)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)