public class Dataset extends IndirectDataset
Extends Dataset
Created by StreamFactory.
Since stream works with file directly a pool of readers is maintained until
the dataset is closed. Class provides extra methods to check how many readers
were created and how many are currently free to use.
Use IndirectDataset instead, if you need access to the pool
of readers, or use Dataset if not.
This is only here for backwards compatibility
pool, sourceage, components, copyright, copyrightOffset, csvBufferLength, deviceCombinations, export, FindProfilesInitialiseValueProfiles, format, formatOffset, highestCharacter, jsonBufferLength, lastModified, lowestCharacter, maps, maximumRank, maxSignatures, maxSignaturesClosest, maxUserAgentLength, maxValues, minUserAgentCount, minUserAgentLength, mode, nameOffset, nextUpdate, nodeRankedSignatureIndexes, nodes, profileOffsets, profiles, properties, published, rankedSignatureIndexes, rootNodes, signatureNodeOffsets, signatureNodesCount, signatureProfilesCount, signatures, strings, tag, values, version, versionEnum, xmlBufferLength| Constructor and Description |
|---|
Dataset(byte[] data,
Modes mode)
Creates a dataset object with a pool of readers used to retrieve data
from the data file represented as an array of bytes.
|
Dataset(String fileName,
Date lastModified,
Modes mode,
boolean isTempFile)
Creates a dataset object with a pool of readers used to retrieve data
from the data file.
|
close, getCache, getReadersCreated, getReadersQueued, resetCache, setCacheMapfindProfile, findProfiles, findProfiles, get, getAge, getBrowsers, getComponent, getComponents, getCopyright, getCrawlers, getDisposed, getFormat, getHardware, getHttpHeaders, getJavaScriptProperties, getMaps, getMaximumRank, getMinUserAgentLength, getName, getNodeCacheSwitches, getNodeRankedSignatureIndexes, getNodes, getNodesCount, getPercentageNodeCacheMisses, getPercentageProfilesCacheMisses, getPercentageRankedSignatureCacheMisses, getPercentageSignatureCacheMisses, getPercentageStringsCacheMisses, getPercentageValuesCacheMisses, getProfiles, getProfilesCacheSwitches, getProfilesCount, getProperties, getPropertyByName, getPropertyValueOverrideProperties, getRankedSignatureCacheSwitches, getRankedSignatureIndexes, getSignatureCacheSwitches, getSignatureNodeOffsets, getSignatures, getSoftware, getStringsCacheSwitches, getValues, getValuesCacheSwitches, init, initComponents, initNodes, initProfiles, initProperties, initSignatures, initValuespublic Dataset(String fileName, Date lastModified, Modes mode, boolean isTempFile) throws IOException
lastModified - Date and time the source data was last modified.fileName - Valid path to the uncompressed data set file.mode - Mode The mode of operation the data set will be using.isTempFile - True if the file should be deleted when the source is
disposedIOException - if there was a problem accessing data file.public Dataset(byte[] data,
Modes mode)
throws IOException
data - array of bytes to read from.mode - The mode of operation the data set will be using.IOException - if there was a problem accessing data file.Copyright © 2017 51Degrees. All rights reserved.