[streaming] refector internal states

add sliding window index, remove mutableTableState.