No, it's translating its internal representation to something usable
directly by GenericBooleanPrefDataModel. Take a look at the code.
I'm not really sure what you're getting at, or what you are trying to
do / solve.

On Sat, Sep 22, 2012 at 7:27 PM, Satendra Tiwari
<[email protected]> wrote:
> So toDataMap is taking File and implementing FastIDSet so
> GenericBooleanPrefDataModel.toDataMap(new FileDataModel(new
> File("ua.base")) should complete constructor what is the outer class doing?
>
> On Sat, Sep 22, 2012 at 11:48 PM, Sean Owen <[email protected]> wrote:
>
>> FileDataModel already uses GenericBooleanPrefDataModel or
>> GenericDataModel internally. This is their relation. You can do what's
>> in this line of code but it's not even necessary. FastIDSet is an
>> implementation detail. But it is actually passed from toDataMap()
>> method. It's just translating into a representation that's necessary
>> for this copy constructor.
>>
>> On Sat, Sep 22, 2012 at 7:13 PM, Satendra Tiwari
>> <[email protected]> wrote:
>> > Hi
>> >
>> > I am not understanding this constructor :
>> > DataModel model = new
>> > GenericBooleanPrefDataModel(GenericBooleanPrefDataModel.toDataMap(new
>> > FileDataModel(new File("ua.base"))));
>> > My doubts are :
>> > 1.We use Generic data models when we want to base our data representation
>> > programatically rather than basing it on external source of data like
>> file,
>> > but here we are taking data from file, so why are using
>> > GenericBooleanPrefDataModel ?
>> > 2.GenericBooleanPrefDataModel stores associations as FastIDSets, but we
>> > have not given it as a parameter here.
>> > 3.What is GenericBooleanPrefDataModel.toDataMap doing?
>> > I am new to Mahout so may be aking very basic things, please help me
>> > building my concepts.
>> >
>> > Thanks & Regards
>> > Satendra
>>

Reply via email to