public class SpillSet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SpillSet.CountingInputStream
Wrapper around an input stream to collect the total bytes
read through the stream for use in reporting performance
metrics.
|
static class |
SpillSet.CountingOutputStream
Wrapper around an output stream to collect the total bytes
written through the stream for use in reporting performance
metrics.
|
Constructor and Description |
---|
SpillSet(DrillConfig config,
ExecProtos.FragmentHandle handle,
PhysicalOperator popConfig) |
SpillSet(FragmentContext context,
PhysicalOperator popConfig) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(VectorSerializer.Writer writer) |
void |
delete(String fileName) |
int |
getFileCount() |
String |
getNextSpillFile() |
String |
getNextSpillFile(String extraName) |
long |
getPosition(InputStream inputStream) |
long |
getPosition(WritableByteChannel channel) |
long |
getReadBytes() |
long |
getWriteBytes() |
boolean |
hasSpilled() |
InputStream |
openForInput(String fileName) |
WritableByteChannel |
openForOutput(String fileName) |
void |
tallyReadBytes(long readLength) |
void |
tallyWriteBytes(long writeLength) |
VectorSerializer.Writer |
writer(String fileName) |
public SpillSet(FragmentContext context, PhysicalOperator popConfig)
public SpillSet(DrillConfig config, ExecProtos.FragmentHandle handle, PhysicalOperator popConfig)
public String getNextSpillFile()
public boolean hasSpilled()
public int getFileCount()
public InputStream openForInput(String fileName) throws IOException
IOException
public WritableByteChannel openForOutput(String fileName) throws IOException
IOException
public void delete(String fileName) throws IOException
IOException
public long getWriteBytes()
public long getReadBytes()
public void close()
public long getPosition(InputStream inputStream)
public long getPosition(WritableByteChannel channel)
public void tallyReadBytes(long readLength)
public void tallyWriteBytes(long writeLength)
public VectorSerializer.Writer writer(String fileName) throws IOException
IOException
public void close(VectorSerializer.Writer writer) throws IOException
IOException
Copyright © 1970 The Apache Software Foundation. All rights reserved.