question: private Snapshot createSnapshot ( SnapshotDescriptor descriptor ) { if ( storage . level ( ) == StorageLevel . MEMORY ) { return createMemorySnapshot ( descriptor ) ; } else { return createDiskSnapshot ( descriptor ) ; } }
target:  Creates a new snapshot buffer.