Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2014 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 
 package com.google.cloud.hadoop.gcsio;
 
Configurable options for the GoogleCloudStorageFileSystem class.
 
Mutable builder for GoogleCloudStorageFileSystemOptions.
 
   public static class Builder {
     protected boolean metadataCacheEnabled = true;
     protected String cacheBasePath = null;
 
         new GoogleCloudStorageOptions.Builder();
 
       return ;
     }
 
         GoogleCloudStorageOptions.Builder cloudStorageOptionsBuilder) {
       this. = cloudStorageOptionsBuilder;
       return this;
     }
 
     public Builder setIsMetadataCacheEnabled(boolean isMetadataCacheEnabled) {
       this. = isMetadataCacheEnabled;
       return this;
     }
 
     public Builder setCacheType(DirectoryListCache.Type cacheType) {
       this. = cacheType;
       return this;
     }
 
     public Builder setCacheBasePath(String cacheBasePath) {
       this. = cacheBasePath;
       return this;
     }
 
         Predicate<StringshouldIncludeInTimestampUpdatesPredicate) {
       this. = shouldIncludeInTimestampUpdatesPredicate;
       return this;
     }
 
     public Builder setCacheMaxEntryAgeMillis(long cacheMaxEntryAgeMillis) {
       this. = cacheMaxEntryAgeMillis;
       return this;
     }
 
     public Builder setCacheMaxInfoAgeMillis(long cacheMaxInfoAgeMillis) {
       this. = cacheMaxInfoAgeMillis;
       return this;
     }
 
       return new GoogleCloudStorageFileSystemOptions(
           .build(),
           ,
           ,
           ,
           ,
           );
     }
   }
 
   public static Builder newBuilder() {
     return new Builder();
   }
 
   private final boolean metadataCacheEnabled;
   private final DirectoryListCache.Type cacheType;
  private final String cacheBasePath;  // Only used if cacheType == FILESYSTEM_BACKED.
  private final long cacheMaxEntryAgeMillis;
  private final long cacheMaxInfoAgeMillis;
      GoogleCloudStorageOptions cloudStorageOptions,
      boolean metadataCacheEnabled,
      DirectoryListCache.Type cacheType,
      String cacheBasePath,
      Predicate<StringshouldIncludeInTimestampUpdatesPredicate,
      long cacheMaxEntryAgeMillis,
      long cacheMaxInfoAgeMillis) {
    this. = cloudStorageOptions;
    this. = metadataCacheEnabled;
    this. = cacheType;
    this. = cacheBasePath;
    this. = shouldIncludeInTimestampUpdatesPredicate;
    this. = cacheMaxEntryAgeMillis;
    this. = cacheMaxInfoAgeMillis;
  }
    return ;
  }
  public boolean isMetadataCacheEnabled() {
    return ;
  }
    return ;
  }
  public String getCacheBasePath() {
    return ;
  }
  }
  public long getCacheMaxEntryAgeMillis() {
    return ;
  }
  public long getCacheMaxInfoAgeMillis() {
    return ;
  }
  public void throwIfNotValid() {
    Preconditions.checkArgument(
        "Predicate for ignored directory updates should not be null. "
            + "Consider Predicates.alwasyTrue");
  }
New to GrepCode? Check out our FAQ X