C# Class DBreeze.TextSearch.WABI

Word aligned bitmap index
Mostra file Open project: hhblaze/DBreeze Class Usage Examples

Public Properties

Property Type Description
ExistsInDB bool

Public Methods

Method Description
Add ( int index, bool value ) : void

Contains ( int index ) : bool

GetCompressedByteArray ( ) : byte[]

With extra protocol definition, ready for save into DB

GetUncompressedByteArray ( ) : byte[]

Working byte[]

MergeByAndLogic ( List arraysToMerge ) : byte[]

Using OR logic: 1|1 = 1|0 = 1; 0|0 = 0

Using AND logic: 1 and 1 = 1; 1 and 0 = 0; 0 and 0 = 0

MergeByExcludeLogic ( byte array1, byte array2 ) : byte[]

Using EXCLUDE logic: 1notin1 = 0; 1notin0 = 1; 0notin0 = 0; 0notin1 = 0;

MergeByOrLogic ( List arraysToMerge ) : byte[]

Using OR logic: 1or1 = 1or0 = 1; 0or0 = 0

MergeByXorLogic ( List arraysToMerge ) : byte[]

Using XOR logic: 1xor1 = 0; 0xor0 = 0; 1xor0 = 1

Resize ( int len ) : void

TextSearch_AND_logic ( List indexesToCheck ) : IEnumerable

Returns first added document first (sort by ID asc)

Returns last added documents first

TextSearch_AND_logic ( List indexesToCheck, int docStart, int docStop, bool descending = true ) : IEnumerable

TextSearch_OR_logic ( List indexesToCheck, int maximalReturnQuantity ) : IEnumerable

SOrt by ID desc

WABI ( ) : System

WABI ( byte array ) : System

Must be supplied CompressedByteArray taken from GetCompressedByteArray function

Method Details

Add() public method

public Add ( int index, bool value ) : void
index int
value bool
return void

Contains() public method

public Contains ( int index ) : bool
index int
return bool

GetCompressedByteArray() public method

With extra protocol definition, ready for save into DB
public GetCompressedByteArray ( ) : byte[]
return byte[]

GetUncompressedByteArray() public method

Working byte[]
public GetUncompressedByteArray ( ) : byte[]
return byte[]

MergeByAndLogic() public static method

Using OR logic: 1|1 = 1|0 = 1; 0|0 = 0 Using AND logic: 1 and 1 = 1; 1 and 0 = 0; 0 and 0 = 0
public static MergeByAndLogic ( List arraysToMerge ) : byte[]
arraysToMerge List
return byte[]

MergeByExcludeLogic() public static method

Using EXCLUDE logic: 1notin1 = 0; 1notin0 = 1; 0notin0 = 0; 0notin1 = 0;
public static MergeByExcludeLogic ( byte array1, byte array2 ) : byte[]
array1 byte
array2 byte
return byte[]

MergeByOrLogic() public static method

Using OR logic: 1or1 = 1or0 = 1; 0or0 = 0
public static MergeByOrLogic ( List arraysToMerge ) : byte[]
arraysToMerge List
return byte[]

MergeByXorLogic() public static method

Using XOR logic: 1xor1 = 0; 0xor0 = 0; 1xor0 = 1
public static MergeByXorLogic ( List arraysToMerge ) : byte[]
arraysToMerge List
return byte[]

Resize() public method

public Resize ( int len ) : void
len int
return void

TextSearch_AND_logic() public static method

Returns first added document first (sort by ID asc) Returns last added documents first
public static TextSearch_AND_logic ( List indexesToCheck ) : IEnumerable
indexesToCheck List
return IEnumerable

TextSearch_AND_logic() public static method

public static TextSearch_AND_logic ( List indexesToCheck, int docStart, int docStop, bool descending = true ) : IEnumerable
indexesToCheck List
docStart int when 0 not counted
docStop int when 0 not counted
descending bool
return IEnumerable

TextSearch_OR_logic() public static method

SOrt by ID desc
public static TextSearch_OR_logic ( List indexesToCheck, int maximalReturnQuantity ) : IEnumerable
indexesToCheck List
maximalReturnQuantity int
return IEnumerable

WABI() public method

public WABI ( ) : System
return System

WABI() public method

Must be supplied CompressedByteArray taken from GetCompressedByteArray function
public WABI ( byte array ) : System
array byte
return System

Property Details

ExistsInDB public_oe property

Technical if already in DB
public bool ExistsInDB
return bool