Java org.apache.hadoop.util LineReader fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.util LineReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.util LineReader.

The text is from its open source code.

Subclass

org.apache.hadoop.util.LineReader has subclasses.
Click this link to see all its subclasses.

Constructor

LineReader(InputStream in)
Create a line reader that reads from the given stream using the default buffer-size (64k).
LineReader(InputStream in, int bufferSize)
Create a line reader that reads from the given stream using the given buffer-size.
LineReader(InputStream in, Configuration conf)
Create a line reader that reads from the given stream using the io.file.buffer.size specified in the given Configuration.
LineReader(InputStream in, byte[] recordDelimiterBytes)
Create a line reader that reads from the given stream using the default buffer-size, and using a custom delimiter of array of bytes.
LineReader(InputStream in, int bufferSize, byte[] recordDelimiterBytes)
Create a line reader that reads from the given stream using the given buffer-size, and using a custom delimiter of array of bytes.
LineReader(InputStream in, Configuration conf, byte[] recordDelimiterBytes)
Create a line reader that reads from the given stream using the io.file.buffer.size specified in the given Configuration, and using a custom delimiter of array of bytes.

Method

voidclose()
Close the underlying stream.
intreadLine(Text str)
Read from the InputStream into the given Text.
intreadLine(Text str, int maxLineLength)
Read from the InputStream into the given Text.
intreadLine(Text str, int maxLineLength, int maxBytesToConsume)
Read one line from the InputStream into the given Text.