Segment and Geographic Information - Company's Operations by Geographical Area (Detail) - USD ($) $ in Thousands |
3 Months Ended | |
|---|---|---|
Jan. 31, 2016 |
Jan. 31, 2015 |
|
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Sales-external customers | $ 253,553 | $ 275,439 |
| Intercompany sales | 7,715 | 7,808 |
| Gross profit | 43,727 | 32,564 |
| Operating income | 16,771 | 5,573 |
| United States [Member] | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Sales-external customers | 240,278 | 261,047 |
| Intercompany sales | 7,715 | 7,808 |
| Gross profit | 41,355 | 30,119 |
| Operating income | 16,054 | 4,900 |
| Canada [Member] | ||
| Revenues from External Customers and Long-Lived Assets [Line Items] | ||
| Sales-external customers | 13,275 | 14,392 |
| Gross profit | 2,372 | 2,445 |
| Operating income | $ 717 | $ 673 |