# Copyright (C) 2005 Network Applied Communication Laboratory Co., Ltd. # # This file is part of Rast. # See the file COPYING for redistribution information. # module Rast module MergedDocIDCheck def split_doc_id(doc_id) return DocIDInfo.new(doc_id & 0x00FFFFFF, doc_id >> 24) end DocIDInfo = Struct.new(:inner_doc_id, :index_number) end end