Search::GIN::Query::Class(3pm) User Contributed Perl Documentation Search::GIN::Query::Class(3pm)NAME
Search::GIN::Query::Class - Create class-based GIN queries
VERSION
version 0.08
SYNOPSIS
use Search::GIN::Query::Class;
my $query = Search::GIN::Query::Class->new(
class => 'Person',
);
DESCRIPTION
Creates a class-based GIN query that can be used to search records in a storage.
This is a ready-to-use query that uses class definitions (specifically "class", "does" and "blessed") to search through the storage.
METHODS /SUBROUTINES
new
Creates a new query.
ATTRIBUTES
class
The class of the object you want to find.
my $query = Search::GIN::Query::Class->new(
class => 'Person',
);
does
A role consumed by the object you want to find.
my $query = Search::GIN::Query::Class->new(
does => 'TheMonkey',
);
blessed
The name of the package that the object is blessed into.
my $query = Search::GIN::Query::Class->new(
blessed => 'Person',
);
AUTHOR
Yuval Kogman <nothingmuch@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.10.1 2011-01-31 Search::GIN::Query::Class(3pm)
Check Out this Related Man Page
Search::GIN::Query::Set(3pm) User Contributed Perl Documentation Search::GIN::Query::Set(3pm)NAME
Search::GIN::Query::Set - Create queries with set operations
VERSION
version 0.08
SYNOPSIS
# build a query like:
# (type:pdf OR type:png) AND (name:Homer OR name:Bart)
use Search::GIN::Query::Set;
use Search::GIN::Query::Manual;
my $query = Search::GIN::Query::Set->new(
operation => 'INTERSECT',
subqueries => [
Search::GIN::Query::Manual->new(
values => {
type => [qw(pdf png)]
}
),
Search::GIN::Query::Manual->new(
values => {
name => [qw(Homer Bart)]
}
),
]
);
DESCRIPTION
Creates a manual GIN query that can be used to search using basic set theory, in order to build more complex queries.
This query doesn't provide any specific search, it's just a set operator for subqueries. You can build complex queries by using other set
queries as subqueries for a set query.
METHODS /SUBROUTINES
new
Creates a new query.
ATTRIBUTES
subqueries
The subqueries to process
operation
One of the basic set operators: "UNION", "INTERSECT" and "EXCEPT". The default is "UNION"
AUTHOR
Yuval Kogman <nothingmuch@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.10.1 2011-01-31 Search::GIN::Query::Set(3pm)
Hi All,
How can i searc for a \n in a file. Not a newline but \n itself.
In detail i have a statement printf("\n hello"); here i need to find \n.
Can u please help on this..
Thanks in advance
Regards,
Chanakya (6 Replies)
I have input file with below content:
Person:
Name: Firstname1 lastname1
Address: 111, Straat
City : Hilversum
Person:
Name : Fistname2 lastname2
Address: 222, street
Cit: Bussum
Person:
Name : Firstname2 lastname3
Address: 333, station straat
City: Amsterdam
I need... (6 Replies)
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input. Pls note that need to ignore words in between /* */
Search for: "insert into xyz" (Which procedure contain all 3).
Expected output:
procedure test1
procedure test2
procedure test3
File... (12 Replies)
hi,
I am stuck at a place. Please help me out. Here is what i need to do.
Search for a pattern in a propertyfile and change only at one occurance. I have these statements and assignment as a part of the propertyfile
#Note : The Address should be replaced with actual address dynamically.
... (7 Replies)
Hi ,
Im using the below script to find the Good and Bad for the file permission.
$rc=`find /etc/security/opasswd -perm 0600 -print -ls`;
if($rc == 1)
{
print "GOOD: AD.1.8.4.1: The file /etc/security/opasswd exists and had permission 0600\n\n";
... (6 Replies)
I have a query regard the opening of the file. Suppose I have opened the file
Let's say view filename
And then I found that I have to do some changes in that, but I do not want to close the file
Then how I can change the permission of the file from read mode to write mode
Regards
Adi (6 Replies)
Hi,
I have a typical requirement to find users having at least three occurrence in a log within an hour, and perform some action for that user. We have several steps, however I am kind of stuck here to accomplish the said requirement.
Here are the logs :
conn=13570 op=14 msgId=13 - BIND... (16 Replies)
Hello.
I want to find a line that has "new = 0" in it, then search back based on field $4 () in the current line, and find the first line that has field $4 and "last fetch"
Grep or Awk preferred.
Here is what the data looks like:
2013-12-12 12:10:30,117 TRACE last fetch: Thu Dec 12... (7 Replies)
Hi, I have 2 different values in the same column and two different values in other column
Query 1
ins name value
1 Test 12345
1 TestV1 12/10/2014
8 Test 85435
8 TestV1 11/11/2005
9 Test 42232
9 TestV1 19/10/2000
6 Test 54321... (6 Replies)
I'm having few question.
i'm have a input file.
Other information
CONNECTIONS
"BP-COLLECTOR"
J6.4
"BP-TEST".4;
+5VS
C34.1
U21.1;
DEV_I2C_SDA
J6.6
R4.1
U18.1;
DEVICES
"BP-TEST"
1."BP-LED_ANODE" (8 Replies)