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
Nested ClassesModifier and TypeClassDescriptionstatic classWrapper around an input stream to collect the total bytes read through the stream for use in reporting performance metrics.static classWrapper around an output stream to collect the total bytes written through the stream for use in reporting performance metrics. -
Constructor Summary
ConstructorsConstructorDescriptionSpillSet(DrillConfig config, ExecProtos.FragmentHandle handle, PhysicalOperator popConfig) SpillSet(FragmentContext context, PhysicalOperator popConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(VectorSerializer.Writer writer) voidintgetNextSpillFile(String extraName) longgetPosition(InputStream inputStream) longgetPosition(WritableByteChannel channel) longlongbooleanopenForInput(String fileName) openForOutput(String fileName) voidtallyReadBytes(long readLength) voidtallyWriteBytes(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
-