Tabnine Logo
ReplicaOutputStreams.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaOutputStreams
constructor

Best Java code snippets using org.apache.hadoop.hdfs.server.datanode.fsdataset.ReplicaOutputStreams.<init> (Showing top 6 results out of 315)

origin: org.apache.hadoop/hadoop-hdfs

  crcOut.getChannel().position(crcDiskSize);
 return new ReplicaOutputStreams(blockOut, crcOut, checksum,
   getVolume(), fileIoProvider);
} catch (IOException e) {
origin: ch.cern.hadoop/hadoop-hdfs

@Override
public ReplicaOutputStreams createStreams(boolean isCreate,
  DataChecksum requestedChecksum) throws IOException {
 return new ReplicaOutputStreams(null, null, requestedChecksum, false);
}
origin: linkedin/dynamometer

@Override
synchronized public ReplicaOutputStreams createStreams(boolean isCreate,
  DataChecksum requestedChecksum) throws IOException {
 if (finalized) {
  throw new IOException("Trying to write to a finalized replica "
    + theBlock);
 } else {
  SimulatedOutputStream crcStream = new SimulatedOutputStream();
  return new ReplicaOutputStreams(oStream, crcStream, requestedChecksum,
    getStorage(theBlock).getVolume().isTransientStorage());
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

@Override
synchronized public ReplicaOutputStreams createStreams(boolean isCreate, 
  DataChecksum requestedChecksum) throws IOException {
 if (finalized) {
  throw new IOException("Trying to write to a finalized replica "
    + theBlock);
 } else {
  SimulatedOutputStream crcStream = new SimulatedOutputStream();
  return new ReplicaOutputStreams(oStream, crcStream, requestedChecksum,
    volume.isTransientStorage());
 }
}
origin: ch.cern.hadoop/hadoop-hdfs

  crcOut.getChannel().position(crcDiskSize);
 return new ReplicaOutputStreams(blockOut, crcOut, checksum,
   getVolume().isTransientStorage());
} catch (IOException e) {
origin: io.prestosql.hadoop/hadoop-apache

  crcOut.getChannel().position(crcDiskSize);
 return new ReplicaOutputStreams(blockOut, crcOut, checksum,
   getVolume().isTransientStorage());
} catch (IOException e) {
org.apache.hadoop.hdfs.server.datanode.fsdatasetReplicaOutputStreams<init>

Javadoc

Create an object with a data output stream, a checksum output stream and a checksum.

Popular methods of ReplicaOutputStreams

  • getChecksumOut
  • getDataOut
  • getChecksum
  • isTransientStorage
  • syncChecksumOut
    Sync the checksum stream if it supports it.
  • syncDataOut
    Sync the data stream if it supports it.
  • close
  • closeDataStream
  • dropCacheBehindWrites
  • flushDataOut
    Flush the data stream if it supports it.
  • getOutFd
  • syncFileRangeIfPossible
  • getOutFd,
  • syncFileRangeIfPossible,
  • writeDataToDisk

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now