#Region "Microsoft.VisualBasic::b34a9134d5bda3ea760382bb122a5d71, RQL\Repository\LinqEntry.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see .
' /********************************************************************************/
' Summaries:
' Class LinqEntry
'
' Properties: Linq, uid
'
' Constructor: (+2 Overloads) Sub New
' Function: AsLinq, LinqReader
'
'
' /********************************************************************************/
#End Region
Imports Microsoft.VisualBasic.Net
Imports Microsoft.VisualBasic.Scripting
Imports sciBASIC.ComputingServices.TaskHost
Namespace Linq
'''
''' 类型信息是所查询的对象的类型信息
'''
Public Class LinqEntry : Inherits MetaData.TypeInfo
'''
''' 唯一标识当前的这个查询的哈希值
'''
'''
Public Property uid As String
'''
''' 除了使用上面的uid进行url查询,也可以使用这个地址来使用socket查询,具体的协议已经封装在
'''
'''
Public Property Linq As IPEndPoint
Sub New()
End Sub
Sub New(info As Type)
Call MyBase.New(info)
End Sub
Public Function AsLinq(Of T)() As ILinq(Of T)
Return New ILinq(Of T)(Linq)
End Function
Public Function LinqReader() As ILinqReader
Return New ILinqReader(Linq, Me.GetType)
End Function
End Class
End Namespace