Package org.apache.hadoop.io
package org.apache.hadoop.io
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
-
ClassDescriptionAbstract base class for MapWritable and SortedMapWritable Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of MapWritable<Writable, MapWritable> so the CLASS_TO_ID and ID_TO_CLASS maps travel with the class instead of being static.A dense file-based mapping from integers to values.org.apache.hadoop.io.ArrayFile.ReaderProvide access to an existing array file.org.apache.hadoop.io.ArrayFile.WriterWrite a new array file.This is a wrapper class.A Writable for arrays containing instances of a class.Interface supported by
WritableComparabletypes supporting ordering/permutation by a representative set of bytes.This class extendsMapFileand provides very much the same functionality.org.apache.hadoop.io.BloomMapFile.Readerorg.apache.hadoop.io.BloomMapFile.WriterA WritableComparable for booleans.org.apache.hadoop.io.BooleanWritable.ComparatorA Comparator optimized for BooleanWritable.org.apache.hadoop.io.BoundedByteArrayOutputStreamA byte array backed output stream with a limit.A byte sequence that is usable as a key or value.org.apache.hadoop.io.BytesWritable.ComparatorA Comparator optimized for BytesWritable.A WritableComparable for a single byte.org.apache.hadoop.io.ByteWritable.ComparatorA Comparator optimized for ByteWritable.Deprecated.use java.io.CloseableA base-class for Writables which store themselves compressed and lazily inflate on field access.org.apache.hadoop.io.DataInputBufferA reusableDataInputimplementation that reads from an in-memory buffer.org.apache.hadoop.io.DataInputByteBufferorg.apache.hadoop.io.DataOutputBufferA reusableDataOutputimplementation that writes to an in-memory buffer.OutputStream implementation that wraps a DataOutput.DefaultStringifier is the default implementation of theStringifierinterface which stringifies the objects using base64 encoding of the serialized version of the objects.Writable for Double values.org.apache.hadoop.io.DoubleWritable.ComparatorA Comparator optimized for DoubleWritable.This is a simple ByteBufferPool which just creates ByteBuffers as needed.org.apache.hadoop.io.ElasticByteBufferPool.KeyEnumSetWritable<E extends Enum<E>>A Writable wrapper for EnumSet.A WritableComparable for floats.org.apache.hadoop.io.FloatWritable.ComparatorA Comparator optimized for FloatWritable.A wrapper for Writable instances.org.apache.hadoop.io.InputBufferA reusableInputStreamimplementation that reads from an in-memory buffer.A WritableComparable for ints.org.apache.hadoop.io.IntWritable.ComparatorA Comparator optimized for IntWritable.An utility class for I/O related functionality.org.apache.hadoop.io.IOUtils.NullOutputStreamThe /dev/null of OutputStreams.A WritableComparable for longs.org.apache.hadoop.io.LongWritable.ComparatorA Comparator optimized for LongWritable.org.apache.hadoop.io.LongWritable.DecreasingComparatorA decreasing Comparator optimized for LongWritable.A file-based map from keys to values.org.apache.hadoop.io.MapFile.MergerClass to merge multiple MapFiles of same Key and Value types to one MapFileorg.apache.hadoop.io.MapFile.ReaderProvide access to an existing map.org.apache.hadoop.io.MapFile.Reader.Optionorg.apache.hadoop.io.MapFile.WriterWrites a new map.org.apache.hadoop.io.MapFile.Writer.OptionA Writable Map.A Writable for MD5 hash values.org.apache.hadoop.io.MD5Hash.ComparatorA WritableComparator optimized for MD5Hash keys.Encapsulate a list ofIOExceptioninto anIOExceptionorg.apache.hadoop.io.MultipleIOException.BuilderBuild anIOExceptionusingMultipleIOExceptionif there are more than one.Singleton Writable with no data.org.apache.hadoop.io.NullWritable.ComparatorA Comparator "optimized" for NullWritable.A polymorphic Writable that writes an instance with it's class name.org.apache.hadoop.io.OutputBufferA reusableOutputStreamimplementation that writes to an in-memory buffer.AComparatorthat operates directly on byte representations of objects.org.apache.hadoop.io.ReadaheadPoolManages a pool of threads which can issue readahead requests on file descriptors.org.apache.hadoop.io.ReadaheadPool.ReadaheadRequestAn outstanding readahead request that has been submitted to the pool.org.apache.hadoop.io.SecureIOUtilsThis class provides secure APIs for opening and creating files on the local disk.org.apache.hadoop.io.SecureIOUtils.AlreadyExistsExceptionSignals that an attempt to create a file at a given pathname has failed because another file already existed at that path.SequenceFiles are flat files consisting of binary key/value pairs.The compression type used to compress key/value pairs in theSequenceFile.org.apache.hadoop.io.SequenceFile.MetadataThe class encapsulating with the metadata of a file.org.apache.hadoop.io.SequenceFile.ReaderReads key/value pairs from a sequence-format file.org.apache.hadoop.io.SequenceFile.Reader.OptionA tag interface for all of the Reader optionsorg.apache.hadoop.io.SequenceFile.SorterSorts key/value pairs in a sequence-format file.org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIteratorThe interface to iterate over raw keys/values of SequenceFiles.org.apache.hadoop.io.SequenceFile.ValueBytesThe interface to 'raw' values of SequenceFiles.org.apache.hadoop.io.SequenceFile.WriterWrite key/value pairs to a sequence-format file.org.apache.hadoop.io.SequenceFile.Writer.OptionA file-based set of keys.org.apache.hadoop.io.SetFile.ReaderProvide access to an existing set file.org.apache.hadoop.io.SetFile.WriterWrite a new set file.A WritableComparable for shorts.org.apache.hadoop.io.ShortWritable.ComparatorA Comparator optimized for ShortWritable.Sizes of binary values and other some common sizes.SortedMapWritable<K extends WritableComparable<? super K>>A Writable SortedMap.Stringifier<T>Stringifier interface offers two methods to convert an object to a string representation and restore the object given its string representation.This class stores text using standard UTF8 encoding.org.apache.hadoop.io.Text.ComparatorA WritableComparator optimized for Text keys.A Writable for 2D arrays containing a matrix of instances of a class.org.apache.hadoop.io.UTF8Deprecated.replaced by Textorg.apache.hadoop.io.UTF8.ComparatorA WritableComparator optimized for UTF8 keys.A base class for Writables that provides version checking.Thrown byVersionedWritable.readFields(DataInput)when the version of an object being read does not match the current implementation version as returned byVersionedWritable.getVersion().A WritableComparable for integer values stored in variable-length format.A WritableComparable for longs in a variable-length format.org.apache.hadoop.io.WeakReferencedElasticByteBufferPoolBuffer pool implementation which uses weak references to store buffers in the pool, such that they are garbage collected when there are no references to the buffer during a gc run.A serializable object which implements a simple, efficient, serialization protocol, based onDataInputandDataOutput.AWritablewhich is alsoComparable.A Comparator forWritableComparables.Factories for non-public writables.A factory for a class of Writable.org.apache.hadoop.io.WritableNameUtility to permit renaming of Writable implementation classes without invalidiating files that contain their class name.