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 |
delete(String fileName) |
int |
getFileCount() |
String |
getNextSpillFile() |
String |
getNextSpillFile(String extraName) |
long |
getPosition(InputStream inputStream) |
long |
getPosition(OutputStream outputStream) |
long |
getReadBytes() |
long |
getWriteBytes() |
boolean |
hasSpilled() |
InputStream |
openForInput(String fileName) |
OutputStream |
openForOutput(String fileName) |
void |
tallyReadBytes(long readLength) |
void |
tallyWriteBytes(long writeLength) |
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
IOExceptionpublic OutputStream openForOutput(String fileName) throws IOException
IOExceptionpublic void delete(String fileName) throws IOException
IOExceptionpublic long getWriteBytes()
public long getReadBytes()
public void close()
public long getPosition(InputStream inputStream)
public long getPosition(OutputStream outputStream)
public void tallyReadBytes(long readLength)
public void tallyWriteBytes(long writeLength)
Copyright © 2017 The Apache Software Foundation. All rights reserved.