org.apache.hadoop.hive.ql.index.bitmap
Class BitmapObjectInput
java.lang.Object
org.apache.hadoop.hive.ql.index.bitmap.BitmapObjectInput
- All Implemented Interfaces:
- DataInput, ObjectInput
public class BitmapObjectInput
- extends Object
- implements ObjectInput
An ObjectInput that allows for conversion from an List of LongWritable
to an EWAH-compressed bitmap.
BitmapObjectInput
public BitmapObjectInput()
BitmapObjectInput
public BitmapObjectInput(List<org.apache.hadoop.io.LongWritable> l)
readFromList
public void readFromList(List<org.apache.hadoop.io.LongWritable> l)
available
public int available()
throws IOException
- Specified by:
available
in interface ObjectInput
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface ObjectInput
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
read
public int read(byte[] arg0)
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
read
public int read(byte[] arg0,
int arg1,
int arg2)
throws IOException
- Specified by:
read
in interface ObjectInput
- Throws:
IOException
readObject
public Object readObject()
throws ClassNotFoundException,
IOException
- Specified by:
readObject
in interface ObjectInput
- Throws:
ClassNotFoundException
IOException
skip
public long skip(long arg0)
throws IOException
- Specified by:
skip
in interface ObjectInput
- Throws:
IOException
readBoolean
public boolean readBoolean()
throws IOException
- Specified by:
readBoolean
in interface DataInput
- Throws:
IOException
readByte
public byte readByte()
throws IOException
- Specified by:
readByte
in interface DataInput
- Throws:
IOException
readChar
public char readChar()
throws IOException
- Specified by:
readChar
in interface DataInput
- Throws:
IOException
readDouble
public double readDouble()
throws IOException
- Specified by:
readDouble
in interface DataInput
- Throws:
IOException
readFloat
public float readFloat()
throws IOException
- Specified by:
readFloat
in interface DataInput
- Throws:
IOException
readFully
public void readFully(byte[] arg0)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
readFully
public void readFully(byte[] arg0,
int arg1,
int arg2)
throws IOException
- Specified by:
readFully
in interface DataInput
- Throws:
IOException
readInt
public int readInt()
throws IOException
- Specified by:
readInt
in interface DataInput
- Throws:
IOException
readLine
public String readLine()
throws IOException
- Specified by:
readLine
in interface DataInput
- Throws:
IOException
readLong
public long readLong()
throws IOException
- Specified by:
readLong
in interface DataInput
- Throws:
IOException
readShort
public short readShort()
throws IOException
- Specified by:
readShort
in interface DataInput
- Throws:
IOException
readUTF
public String readUTF()
throws IOException
- Specified by:
readUTF
in interface DataInput
- Throws:
IOException
readUnsignedByte
public int readUnsignedByte()
throws IOException
- Specified by:
readUnsignedByte
in interface DataInput
- Throws:
IOException
readUnsignedShort
public int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort
in interface DataInput
- Throws:
IOException
skipBytes
public int skipBytes(int n)
throws IOException
- Specified by:
skipBytes
in interface DataInput
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.