FileSystem.Statistics (Hadoop 0.20.2+320 API)
Date: 2010-06-28

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.fs
Class FileSystem.Statistics

    java.lang.Object
      org.apache.hadoop.fs.FileSystem.Statistics

Enclosing class:
  FileSystem

    public static final class FileSystem.Statistics

extends Object

Constructor Summary
`FileSystem.Statistics(String scheme)`

Method Summary
`long` | `getBytesRead()` Get the total number of bytes read
`long` | `getBytesWritten()` Get the total number of bytes written
`String` | `getScheme()` Get the uri scheme associated with this statistics object.
`void` | `incrementBytesRead(long newBytes)` Increment the bytes read in the statistics
`void` | `incrementBytesWritten(long newBytes)` Increment the bytes written in the statistics
`void` | `reset()` Reset the counts of bytes to 0.
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FileSystem.Statistics

    public FileSystem.Statistics(String scheme)

Method Detail

### incrementBytesRead

    public void incrementBytesRead(long newBytes)

  Increment the bytes read in the statistics

  Parameters:
    `newBytes` - the additional bytes read

### incrementBytesWritten

    public void incrementBytesWritten(long newBytes)

  Increment the bytes written in the statistics

  Parameters:
    `newBytes` - the additional bytes written

### getBytesRead

    public long getBytesRead()

  Get the total number of bytes read

  Returns:
    the number of bytes

### getBytesWritten

    public long getBytesWritten()

  Get the total number of bytes written

  Returns:
    the number of bytes

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### reset

    public void reset()

  Reset the counts of bytes to 0.

### getScheme

    public String getScheme()

  Get the uri scheme associated with this statistics object.

  Returns:
    the schema associated with this set of statistics

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation