public interface FileQuery extends DirectoryEntryQuery
This is the query for searching files. Each method specifies an
AND
term while multiple invocations of the same method produces a
nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearDataStringTerms()
Clears all file data string terms.
|
void |
clearDataTerms()
Clears all file data terms.
|
void |
clearSizeTerms()
Clears all file size terms.
|
FileQueryRecord |
getFileQueryRecord(Type fileRecordType)
Gets the file query record corresponding to the given
File
record Type. |
void |
matchAnyData(boolean match)
Matches a file that has any data.
|
void |
matchAnySize(boolean match)
Matches a file that has any known size.
|
void |
matchData(byte[] data,
boolean match,
boolean partial)
Matches files who data contains the given bytes.
|
void |
matchDataString(java.lang.String data,
Type stringMatchType,
boolean match)
Adds data strings to this query to match files whose content contains
these strings.
|
void |
matchSize(long from,
long to,
boolean match)
Matches files whose size is within and including the given range.
|
clearAliasesTerms, clearCreatedTimeTerms, clearDirectoryTerms, clearLastAccessTimeTerms, clearModifiedTimeTerms, clearNameTerms, clearOwnerIdTerms, clearOwnerTerms, clearPathTerms, getDirectoryQuery, getOwnerQuery, matchAliases, matchAnyAliases, matchCreatedTime, matchLastAccessTime, matchModifiedTime, matchName, matchOwnerId, matchPath, supportsDirectoryQuery, supportsOwnerQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
void matchSize(long from, long to, boolean match)
from
- low file sizeto
- high file sizematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- to
is les
than from
mandatory
- This method must be implemented. void matchAnySize(boolean match)
match
- true
to match any size, false
to match files with no known sizemandatory
- This method must be implemented. void clearSizeTerms()
mandatory
- This method must be implemented. void matchDataString(java.lang.String data, Type stringMatchType, boolean match)
stringMatchType.
An OR can be performed with multiple queries.data
- string to matchstringMatchType
- the string match typematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- data
not of
stringMatchType
NullArgumentException
- data
or
stringMatchType
is null
UnsupportedException
-
supportsStringMatchType(stringMatchType)
is
false
mandatory
- This method must be implemented. void clearDataStringTerms()
mandatory
- This method must be implemented. void matchData(byte[] data, boolean match, boolean partial)
data
- data to matchmatch
- true
for a positive match, false
for a negative matchpartial
- true
for a partial match, false
for a complete matchNullArgumentException
- data
is
null
mandatory
- This method must be implemented. void matchAnyData(boolean match)
match
- true
to match any data, false
to match files with no datamandatory
- This method must be implemented. void clearDataTerms()
mandatory
- This method must be implemented. FileQueryRecord getFileQueryRecord(Type fileRecordType) throws OperationFailedException
File
record Type.
Multiple record retrievals produce
a nested boolean OR
term.fileRecordType
- a file record typeNullArgumentException
- fileRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(fileRecordType)
is false
mandatory
- This method must be implemented.