Class SpillSet
java.lang.Object
org.apache.drill.exec.physical.impl.spill.SpillSet
Generates the set of spill files for this sort session.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Wrapper around an input stream to collect the total bytes read through the stream for use in reporting performance metrics.static class
Wrapper around an output stream to collect the total bytes written through the stream for use in reporting performance metrics. -
Constructor Summary
ConstructorDescriptionSpillSet
(DrillConfig config, ExecProtos.FragmentHandle handle, PhysicalOperator popConfig) SpillSet
(FragmentContext context, PhysicalOperator popConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
close
(VectorSerializer.Writer writer) void
int
getNextSpillFile
(String extraName) long
getPosition
(InputStream inputStream) long
getPosition
(WritableByteChannel channel) long
long
boolean
openForInput
(String fileName) openForOutput
(String fileName) void
tallyReadBytes
(long readLength) void
tallyWriteBytes
(long writeLength)
-
Constructor Details
-
SpillSet
-
SpillSet
-
-
Method Details
-
getNextSpillFile
-
getNextSpillFile
-
hasSpilled
public boolean hasSpilled() -
getFileCount
public int getFileCount() -
openForInput
- Throws:
IOException
-
openForOutput
- Throws:
IOException
-
delete
- Throws:
IOException
-
getWriteBytes
public long getWriteBytes() -
getReadBytes
public long getReadBytes() -
close
public void close() -
getPosition
-
getPosition
-
tallyReadBytes
public void tallyReadBytes(long readLength) -
tallyWriteBytes
public void tallyWriteBytes(long writeLength) -
writer
- Throws:
IOException
-
close
- Throws:
IOException
-